/* Sellerado Auth Pages — Split-Screen Layout */

.auth-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Left panel — Branding */
.auth-branding {
    flex: 0 0 45%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.auth-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.auth-branding-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 380px;
}

.auth-branding-logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.auth-branding-tagline {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.6;
    font-weight: 400;
}

.auth-branding-features {
    margin-top: 2.5rem;
    text-align: left;
}

.auth-branding-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.auth-branding-features li svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Right panel — Form */
.auth-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: #fff;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

.auth-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.auth-form-subtitle {
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Google button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-google:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.btn-google svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: #94a3b8;
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Form inputs */
.auth-form .form-control,
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    padding: 0.7rem 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form .form-control:focus,
.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.auth-form label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.375rem;
}

/* Submit button */
.btn-auth-submit {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-auth-submit:hover {
    background: #4338ca;
}

/* Links */
.auth-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
    color: #4338ca;
}

/* Footer */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

.auth-footer a {
    color: #94a3b8;
    text-decoration: none;
}

.auth-footer a:hover {
    color: #64748b;
    text-decoration: underline;
}

/* Forgot password */
.auth-forgot {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

/* Alerts */
.auth-form .alert {
    border-radius: 0.5rem;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
}

/* Checkbox */
.auth-form .form-check-label {
    font-size: 0.875rem;
    color: #64748b;
}

/* Bottom link */
.auth-bottom-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

/* Responsive: Hide branding on mobile */
@media (max-width: 768px) {
    .auth-branding {
        display: none;
    }

    .auth-form-panel {
        padding: 1.5rem;
    }
}

/* Crispy forms overrides */
.auth-form .mb-3 {
    margin-bottom: 0.875rem !important;
}

.auth-form .asteriskField {
    display: none;
}

.auth-form #div_id_remember {
    margin-top: 0.5rem;
}
