/*
    File: auth.css
    Description: Styling for the Magica Beauty Login Page
*/

/* Card & Background */
main {
    background-size: cover;
    background-position: center;
}

#login-screen {
    /* For Admin Overlay backward compatibility if needed, though mostly deprecated */
    background-color: rgba(17, 24, 39, 0.75);
    animation: fadeInBg 0.3s ease-out forwards;
}

.card {
    transition: transform 0.2s;
}

/* Animations */
@keyframes fadeInBg {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.animate-shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Form Elements */
input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

/* Checkbox alignment */
.form-checkbox {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
    border-radius: 0.25rem;
    border-color: var(--border);
}

/* Modal Overlay (Forgot Password) */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

/* Split Layout Container */
.auth-split-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: var(--background);
}

/* Side Brand Panel (Desktop Only) */
.auth-brand-side {
    display: none;
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.auth-brand-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(185, 139, 130, 0.8), rgba(35, 35, 35, 0.6));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    color: white;
    backdrop-filter: blur(2px);
}

/* Form Side */
.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card-modern {
    width: 100%;
    max-width: 450px;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 1px solid var(--border);
}

/* Responsive Desktop view */
@media (min-width: 1024px) {
    .auth-brand-side {
        display: flex;
    }
    .auth-card-modern {
        box-shadow: none;
        background: transparent;
        border: none;
    }
}

/* Interactive Elements */
.auth-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.auth-input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    opacity: 0.7;
}

.auth-input-modern {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem !important;
    border-radius: 0.75rem !important;
    border: 2px solid var(--border) !important;
    background: rgba(255,255,255,0.05) !important;
    transition: all 0.3s ease;
}

.auth-input-modern:focus {
    border-color: var(--primary-hover) !important;
    box-shadow: 0 0 0 4px rgba(185, 139, 130, 0.2);
}

/* Social Button Overrides */
.btn-social-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-social-modern:active { transform: scale(0.98); }