:root {
    --auth-primary: #3b71ed;
    --auth-primary-hover: #3566d8;
    --auth-heading: #1a202c;
    --auth-body: #2d3748;
    --auth-muted: #718096;
    --auth-label: #4a5568;
    --auth-input-bg: #eef3ff;
    --auth-input-border: #e2e8f0;
    --auth-page-bg: #f4f7fb;
    --auth-card-radius: 8px;
    --auth-input-radius: 5px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.auth-login-page {
    margin: 0;
    min-height: 100vh;
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    color: var(--auth-body);
    background: var(--auth-page-bg);
    -webkit-font-smoothing: antialiased;
}

.auth-login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem 2rem;
}

.auth-login-card {
    width: 100%;
    max-width: 450px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.65);
    border-radius: var(--auth-card-radius);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    padding: 2.5rem 2.5rem 2.25rem;
}

.auth-login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-login-logo img {
    max-width: 240px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.auth-login-title {
    margin: 0 0 0.25rem;
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--auth-heading);
    text-align: center;
    letter-spacing: -0.01em;
}

.auth-login-subtitle {
    margin: 0 0 1.5rem;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--auth-muted);
    text-align: center;
}

.auth-login-alert {
    margin-bottom: 1rem;
    padding: 0.75rem 0.875rem;
    border-radius: var(--auth-input-radius);
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
    font-size: 0.875rem;
    line-height: 1.45;
}

.auth-login-form .form-control.is-invalid {
    border-color: #fc8181;
}

.auth-login-form .form-control.is-invalid:focus {
    border-color: #f56565;
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.15);
}

.auth-login-form .form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--auth-label);
}

.auth-login-form .required {
    color: #e53e3e;
}

.auth-login-form .form-group {
    margin-bottom: 1rem;
}

.auth-login-form .form-control {
    display: block;
    width: 100%;
    height: 2.8125rem;
    padding: 0.5rem 0.875rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--auth-heading);
    background-color: var(--auth-input-bg);
    border: 1px solid var(--auth-input-border);
    border-radius: var(--auth-input-radius);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-login-form .form-control:focus {
    border-color: rgba(59, 113, 237, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 113, 237, 0.12);
}

.password-field-wrap {
    position: relative;
}

.password-field-wrap .form-control {
    padding-right: 2.5rem;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 0;
    color: #a0aec0;
    cursor: pointer;
    line-height: 1;
}

.password-toggle-btn:hover {
    color: var(--auth-primary);
}

.password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.password-label-row .form-label {
    margin-bottom: 0;
}

.forgot-password-link {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--auth-muted);
    text-decoration: none;
}

.forgot-password-link:hover {
    color: var(--auth-primary);
}

.remember-me-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0 1.25rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--auth-muted);
    cursor: pointer;
}

.remember-me-row input[type="checkbox"] {
    width: 0.9375rem;
    height: 0.9375rem;
    margin: 0;
    accent-color: var(--auth-primary);
    cursor: pointer;
}

.btn-sign-in {
    display: block;
    width: 100%;
    height: 2.8125rem;
    border: 0;
    border-radius: var(--auth-input-radius);
    background: var(--auth-primary);
    color: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-sign-in:hover {
    background: var(--auth-primary-hover);
}

.auth-login-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #94a3b8;
}

.auth-login-footer a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
}

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

.auth-login-footer .heart {
    color: #e53e3e;
}
