:root {
    --primary-blue: #556ee6;
    --primary-blue-light: rgba(85, 110, 230, 0.25);
    --secondary-bg: #f8f8fb;
    --text-muted: #74788d;
    --card-shadow: 0 0.75rem 1.5rem rgba(18, 38, 63, 0.1);

    /* Dynamic Theme Variables */
    --auth-bg: #f8f8fb;
    --auth-card-bg: #ffffff;
    --auth-text: #495057;
}

[data-bs-theme="dark"] {
    --auth-bg: #222736;
    --auth-card-bg: #2a3042;
    --auth-text: #a6b0cf;
    --secondary-bg: #222736;
}

body {
    background-color: var(--auth-bg);
    color: var(--auth-text);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.auth-card {
    background: var(--auth-card-bg);
    border: none;
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
}

.auth-header {
    background-color: var(--primary-blue-light);
    color: var(--primary-blue);
    padding: 2rem 1.5rem;
    position: relative;
}

@media (min-width: 576px) {
    .auth-header {
        padding: 2.5rem 2rem;
    }
}

.auth-header h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.auth-header p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.auth-illustration {
    position: absolute;
    right: 1rem;
    bottom: -10px;
    width: 120px;
    opacity: 0.6;
}

@media (min-width: 576px) {
    .auth-illustration {
        right: 1.5rem;
        width: 160px;
        opacity: 1;
    }
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-top: -36px;
    position: relative;
    z-index: 10;
}

.auth-logo .logo-inner {
    background: var(--primary-blue);
    height: 72px;
    width: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    border: 4px solid var(--auth-card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-body {
    padding: 2rem 1.5rem 1.5rem;
}

@media (min-width: 576px) {
    .auth-body {
        padding: 2.5rem 2rem 2rem;
    }
}

.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 0.6rem 0.9rem;
    border-color: #e2e5e8;
    background-color: var(--auth-card-bg);
    color: var(--auth-text);
    border-radius: 0.4rem;
    font-size: 0.9rem;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-blue);
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    padding: 0.6rem;
    font-weight: 500;
    border-radius: 0.4rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #485ec4;
    border-color: #485ec4;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}