
:root {
    --navy-dark: #0B172B;
    --navy: #122440;
    --navy-light: #1B3455;
    --yellow: #F2C94C;
    --white: #FFFFFF;
    --gray: #B8C4D4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--white);
    background: var(--navy-dark);
}

.page-container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(32, 60, 97, 0.95) 0%,
            transparent 48%
        ),
        linear-gradient(
            145deg,
            var(--navy-dark) 0%,
            var(--navy) 55%,
            var(--navy-light) 100%
        );
}

.header {
    width: 100%;
    min-height: 115px;
    display: flex;
    align-items: center;
    padding: 15px 6%;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    display: block;
    width: auto;
    max-width: 340px;
    max-height: 95px;
    object-fit: contain;
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 35px 20px 45px;
}

.login-container {
    width: 100%;
    max-width: 430px;
    padding: 42px;
    background: rgba(9, 23, 43, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.login-heading {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 18px;
}

.login-heading h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.login-heading p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 9px;
    color: var(--white);
}

.form-group input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #52647D;
    border-radius: 7px;
    background: var(--white);
    color: #17243A;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(242, 201, 76, 0.18);
}

.form-group input::placeholder {
    color: #8995A5;
}

.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: var(--navy);
    font-size: 19px;
    cursor: pointer;
}

.toggle-password:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn-login {
    display: block;
    width: 100%;
    min-height: 49px;
    margin-top: 8px;
    border: none;
    border-radius: 7px;
    background: var(--yellow);
    color: var(--navy-dark);
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-login:hover {
    background: #FFD966;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(242, 201, 76, 0.20);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

.error-message {
    margin-bottom: 18px;
    padding: 12px;
    border: 1px solid rgba(220, 53, 69, 0.5);
    border-radius: 6px;
    background: rgba(220, 53, 69, 0.15);
    color: #FFB8BF;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.success-message {
    margin-bottom: 18px;
    padding: 12px;
    border: 1px solid rgba(39, 174, 96, 0.45);
    border-radius: 6px;
    background: rgba(39, 174, 96, 0.15);
    color: #B8F0CE;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.login-info {
    margin-top: 25px;
    color: var(--gray);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.forgot-password {
    display: block;
    text-align: right;
    margin-top: 14px;
    color: var(--yellow);
    font-size: 13px;
    text-decoration: none;
}

.forgot-password:hover {
    color: #FFD966;
    text-decoration: underline;
}


.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(3, 10, 21, 0.82);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 450px;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 38px 35px 32px;
    border: 1px solid rgba(242, 201, 76, 0.35);
    border-radius: 15px;
    background: linear-gradient(145deg, #172D4B 0%, #0B172B 100%);
    color: var(--white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    animation: modalAppear 0.22s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-box h2 {
    margin: 0 35px 13px 0;
    color: var(--yellow);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
}

.modal-box p {
    margin-bottom: 25px;
    color: #D0D9E6;
    font-size: 14px;
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    background: var(--yellow);
    color: var(--navy-dark);
}

.modal-close:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 3px;
}

.modal-box .form-group {
    margin-bottom: 19px;
}

.modal-box .form-group label {
    color: #F2F5FA;
    font-size: 13px;
}

.modal-box .form-group input {
    height: 47px;
    border: 1px solid #71839D;
    background: #FFFFFF;
    color: #17243A;
}

.modal-box .form-group input:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(242, 201, 76, 0.22);
}

.modal-box .password-container input {
    padding-right: 48px;
}

.modal-box .toggle-password {
    color: var(--navy);
}

.modal-box .btn-login {
    margin-top: 8px;
}

.modal-box .error-message {
    margin-bottom: 18px;
    border-color: rgba(255, 105, 120, 0.55);
    background: rgba(220, 53, 69, 0.18);
    color: #FFD0D5;
}

.modal-box .success-message {
    border-color: rgba(77, 205, 133, 0.5);
    background: rgba(39, 174, 96, 0.16);
    color: #C4F4D6;
}

@media (max-width: 600px) {
    .header {
        min-height: 95px;
        padding: 12px 25px;
    }

    .header-logo img {
        max-width: 270px;
        max-height: 75px;
    }

    .main-content {
        padding: 25px 18px 35px;
    }

    .login-container {
        padding: 32px 24px;
        border-radius: 13px;
    }

    .login-logo {
        width: 85px;
        height: 85px;
    }

    .login-heading h1 {
        font-size: 26px;
    }

    .login-heading p {
        font-size: 13px;
    }


    .modal-overlay {
        padding: 14px;
        align-items: center;
    }

    .modal-box {
        max-height: calc(100dvh - 28px);
        padding: 35px 23px 25px;
        border-radius: 12px;
    }

    .modal-box h2 {
        font-size: 21px;
    }
}

@media (max-height: 650px) and (min-width: 601px) {
    .header {
        min-height: 85px;
    }

    .header-logo img {
        max-height: 70px;
    }

    .main-content {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .login-container {
        padding: 28px 36px;
    }

    .login-heading {
        margin-bottom: 22px;
    }

    .login-logo {
        width: 75px;
        height: 75px;
        margin-bottom: 12px;
    }

    .login-heading h1 {
        font-size: 26px;
    }

    .footer {
        min-height: 75px;
    }
}
