.auth-body,
html,
body {
    min-height: 100%;
    margin: 0;
}

* {
    box-sizing: border-box;
}

.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    background: #f4f5f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "Poppins", "Inter", "Segoe UI", Arial, sans-serif;
    padding: 24px;
    overflow-x: hidden;
}

.logo-login {
    width: 160px;
    max-width: 45%;
    height: auto;
    margin-bottom: 24px;
    display: block;
}

.login-card {
    width: 100%;
    max-width: 390px;
    background: #ffffff;
    border-radius: 6px;
    padding: 52px 56px 48px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.16);
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin: 0 0 8px;
}

.login-subtitle {
    font-size: 17px;
    font-weight: 400;
    color: #111827;
    text-align: center;
    margin: 0 0 58px;
}

.form-group {
    width: 100%;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #1f2937;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    height: 48px;
    border-radius: 5px;
    border: 1px solid #d1d5db;
    padding: 0 16px;
    font-size: 14px;
    color: #000000;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
}

.form-input:focus {
    border: 2px solid #111827;
}

.password-wrapper {
    position: relative;
}

.password-input {
    width: 100%;
    height: 48px;
    border-radius: 5px;
    border: none;
    padding: 0 52px 0 16px;
    font-size: 14px;
    color: #000000;
    background: #eef4ff;
    outline: none;
    box-sizing: border-box;
}

.password-input:focus {
    outline: 2px solid #111827;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #111827;
    gap: 8px;
    line-height: 1.3;
}

.remember-wrapper {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.remember-checkbox {
    width: 18px;
    height: 18px;
    border: 1px solid #9ca3af;
    margin-right: 8px;
}

.forgot-password {
    color: #0057ff;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

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

.login-button {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(90deg, #0057ff 0%, #00cfe8 100%);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.login-button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-button-spaced {
    margin-top: 24px;
}

.form-error {
    display: block;
    margin-top: 6px;
    color: #ef233c;
    font-size: 12px;
}

.is-invalid {
    border: 1px solid #ef233c !important;
}

.password-input.is-invalid {
    outline: 1px solid #ef233c !important;
}

.mt-4 {
    margin-top: 24px;
}

.login-footer {
    margin: 18px 0 0;
    color: #374151;
    font-size: 12px;
    text-align: center;
}

.auth-status {
    margin: 0 0 22px;
    border: 1px solid #bbf7d0;
    border-radius: 5px;
    background: #ecfdf5;
    color: #166534;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
}

.auth-back-link {
    display: block;
    margin-top: 22px;
    color: #0057ff;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
}

.auth-back-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .login-page {
        justify-content: flex-start;
        padding-top: 36px;
        padding-bottom: 28px;
    }

    .login-card {
        max-width: 380px;
        padding: 44px 42px;
    }

    .login-subtitle {
        margin-bottom: 44px;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 24px 16px;
    }

    .logo-login {
        width: 130px;
        margin-bottom: 20px;
    }

    .login-card {
        max-width: 100%;
        padding: 34px 22px;
    }

    .login-title {
        font-size: 22px;
    }

    .login-subtitle {
        font-size: 15px;
        margin-bottom: 36px;
    }

    .login-options {
        align-items: flex-start;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;
    }

    .forgot-password {
        width: 100%;
        white-space: normal;
    }

    .login-button:hover {
        transform: none;
    }
}

@media (max-width: 360px) {
    .login-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .login-card {
        padding: 30px 18px;
    }

    .login-subtitle {
        margin-bottom: 30px;
    }
}
