/* Custom Auth CSS */
:root {
    --auth-bg: #f8f9fa;
    --auth-card-bg: #ffffff;
    --auth-text: #212529;
}

[data-bs-theme="dark"] {
    --auth-bg: #212529;
    --auth-card-bg: #343a40;
    --auth-text: #f8f9fa;
}

body {
    background-color: var(--auth-bg);
    color: var(--auth-text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-shell {
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

.auth-card {
    display: flex;
    background-color: var(--auth-card-bg);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-height: 500px;
}

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Updated Logo Styling with Background and Animation */
.auth-left-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    background: rgba(7, 6, 6, 0.8);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: logo-pulse 3s infinite ease-in-out;
}

.auth-left-title img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 0;
}

@keyframes logo-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
        transform: scale(1);
    }
}

.auth-left-sub {
    font-size: 1.1rem;
    opacity: 0.9;
}

.auth-right {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header-sub {
    color: #6c757d;
}

.auth-form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.auth-input-group .input-group-text {
    background-color: transparent;
}

.auth-input-group .form-control:focus {
    box-shadow: none;
    border-color: #86b7fe;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--auth-text);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0.5rem;
}

.theme-toggle-btn:hover {
    color: #0d6efd;
}

/* Back Home Button */
.back-home-btn {
    background: none;
    border: none;
    color: var(--auth-text);
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 600;
    transition: color 0.3s;
    padding: 0.5rem;
}

.back-home-btn:hover {
    color: #0d6efd;
}

/* Login Button Styling */
.btn-auth-primary {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.btn-auth-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2);
    color: white;
}

@media (max-width: 768px) {
    .auth-card {
        flex-direction: column;
        margin-top: 0;
    }
    .auth-left {
        padding: 2rem 1rem;
        min-height: auto;
    }
    .auth-left-title {
        width: 110px;
        height: 110px;
        margin-bottom: 1rem;
    }
    .auth-left-title img {
        max-width: 120px;
        max-height: 120px;
    }
    .auth-right {
        padding: 2rem 1.5rem;
    }
    .auth-header-title {
        font-size: 1.5rem;
    }
}
