/* =====================
   RESET & BASE
===================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #f5f5f5;
}

/* =====================
   PAGE WRAPPER — split layout
===================== */
.page-wrapper {
    display: flex;
    min-height: 100vh;
}

/* =====================
   LEFT PANEL
===================== */
.left-panel {
    width: 44%;
    min-width: 380px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
}

/* =====================
   HEADER
===================== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ministry-seal {
    width: 62px;
    height: 62px;
    object-fit: contain;
    flex-shrink: 0;
}

.mhrs-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mhrs-icon-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.mhrs-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.mhrs-line1 {
    font-size: 13px;
    font-weight: 400;
    color: #333;
}

.mhrs-line2 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    background: #fff;
    white-space: nowrap;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lang-selector:hover {
    border-color: #aaa;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.flag-icon {
    width: 22px;
    height: auto;
    border-radius: 2px;
}

.lang-text {
    font-size: 13px;
    color: #333;
}

.chevron-icon {
    display: block;
}

/* =====================
   FORM SECTION
===================== */
.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.form-container {
    width: 100%;
    max-width: 390px;
}

/* Input wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d5d5d5;
    border-radius: 26px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper:focus-within {
    border-color: #999;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.04);
}

.input-icon {
    padding: 0 8px 0 18px;
    display: flex;
    align-items: center;
    color: #aaa;
    flex-shrink: 0;
}

.form-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 12px 14px 0;
    font-size: 16px;
    color: #333;
    background: transparent;
    font-family: 'Inter', Arial, sans-serif;
}

.form-input::placeholder {
    color: #b0b0b0;
    font-weight: 400;
}

.eye-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 16px;
    display: flex;
    align-items: center;
    color: #aaa;
    transition: color 0.2s;
}

.eye-toggle:hover {
    color: #666;
}

/* Forgot password */
.forgot-password {
    text-align: right;
    margin-bottom: 18px;
    padding-right: 4px;
}

.forgot-password a {
    font-size: 13px;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* =====================
   BUTTONS
===================== */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 26px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', Arial, sans-serif;
    cursor: pointer;
    margin-bottom: 10px;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    color: #fff;
    letter-spacing: 0.2px;
    overflow: hidden;
    height: 50px;
    position: relative;
}

.btn:hover {
    opacity: 0.93;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.btn:active {
    transform: scale(0.985);
}

/* Giriş button - no icon, centered text */
.btn-green {
    background: linear-gradient(135deg, #27ae60, #1e8e4f);
    justify-content: center;
    padding: 0 16px;
}

/* e-Devlet button */
.btn-red {
    background: linear-gradient(135deg, #c0392b, #a93226);
    justify-content: flex-start;
}

/* e-Nabız button */
.btn-blue {
    background: linear-gradient(135deg, #1a5276, #154360);
    justify-content: flex-start;
}

/* Icon area on left side of buttons */
.btn-icon-area {
    width: 48px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(0,0,0,0.2);
    border-radius: 26px 0 0 26px;
}

.btn-logo-img {
    height: 28px;
    width: 28px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
}

.btn-text {
    flex: 1;
    text-align: center;
    padding-right: 48px; /* offset to visually center text accounting for icon area */
    font-size: 15px;
    font-weight: 600;
}

/* Help section */
.help-box {
    margin-top: 28px;
    padding-top: 0;
}

.help-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.45;
}

.help-text {
    font-size: 13px;
    color: #555;
    line-height: 1.65;
}

/* =====================
   FOOTER
===================== */
.footer {
    padding: 20px 24px;
    text-align: center;
    background: #f5f5f5;
}

.footer p {
    font-size: 12.5px;
    color: #555;
    line-height: 1.55;
}

.footer a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

/* =====================
   RIGHT PANEL
===================== */
.right-panel {
    flex: 1;
    background-image: url('../images/neyim_var_banner.png');
    background-size: cover;
    background-position: center top;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px;
    min-height: 100vh;
}

.neyimvar-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.neyimvar-logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.neyimvar-title {
    font-size: 26px;
    font-weight: 300;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}

.neyimvar-title strong {
    font-weight: 800;
}

.right-overlay-box {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-width: 380px;
    align-self: center;
}

.right-overlay-box p {
    font-size: 14.5px;
    color: #222;
    line-height: 1.65;
    text-align: center;
}

/* =====================
   MOBILE RESPONSIVE
===================== */
@media (max-width: 768px) {

    .page-wrapper {
        flex-direction: column;
    }

    .left-panel {
        width: 100%;
        min-width: unset;
        min-height: 100vh;
    }

    .right-panel {
        display: none;
    }

    .header {
        padding: 12px 16px;
    }

    .ministry-seal {
        width: 44px;
        height: 44px;
    }

    .mhrs-icon-img {
        height: 40px;
    }

    .mhrs-line1 {
        font-size: 12px;
    }

    .mhrs-line2 {
        font-size: 13px;
    }

    .form-section {
        padding: 28px 20px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .form-container {
        max-width: 100%;
    }

    .footer {
        text-align: center;
    }

    .footer p {
        font-size: 12px;
    }

    .lang-text {
        display: inline;
    }
}

@media (max-width: 400px) {
    .header-left {
        gap: 8px;
    }

    .ministry-seal {
        width: 38px;
        height: 38px;
    }

    .mhrs-icon-img {
        height: 34px;
    }

    .mhrs-line1 {
        font-size: 11px;
    }

    .mhrs-line2 {
        font-size: 12px;
    }
}
