/* ============================================================
   CRM Auth - login/register stylesheet (plain CSS)
   ============================================================ */

:root {
    --bs-primary:        #4f46e5;
    --bs-primary-rgb:    79, 70, 229;
    --bs-danger:         #ef4444;
    --bs-danger-rgb:     239, 68, 68;
    --bs-link-color:     #4f46e5;
    --bs-link-color-rgb: 79, 70, 229;
    --bs-link-hover-color: #4338ca;
    --bs-link-hover-color-rgb: 67, 56, 202;
    --bs-body-font-family: "Be Vietnam Pro", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --crm-grad-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Form focus override (Bootstrap default uses blue) */
.form-control:focus,
.form-check-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, .15);
}

body.auth-page {
    min-height: 100vh;
    font-family: var(--bs-body-font-family);
    background: #0f172a;
    background-image:
        radial-gradient(at 20% 20%, rgba(102, 126, 234, .5) 0, transparent 40%),
        radial-gradient(at 80% 30%, rgba(118, 75, 162, .45) 0, transparent 40%),
        radial-gradient(at 40% 80%, rgba(56, 239, 125, .25) 0, transparent 40%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 2.5rem 2.25rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    box-shadow: 0 25px 60px rgba(15, 23, 42, .35);
    animation: fadeInUp .6s ease-out;
}
.auth-card .auth-logo {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: var(--crm-grad-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 14px 30px rgba(102, 126, 234, .45);
    margin-bottom: 1.25rem;
}
.auth-card h1 {
    font-size: 1.55rem;
    font-weight: 700;
    color: #0f172a;
}
.auth-card p.lead-sub {
    color: #64748b;
    font-size: 0.92rem;
}
.auth-card .form-control {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.auth-card .form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 0.22rem rgba(79, 70, 229, .15);
    background: #fff;
}
.auth-card .btn-auth {
    width: 100%;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.auth-footer {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, .6);
    font-size: 0.8rem;
}

/* Gradient button (used by login form) */
.btn-3d-gradient {
    position: relative;
    border: none;
    border-radius: 0.6rem;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    color: #fff;
    background: var(--crm-grad-primary);
    box-shadow: 0 10px 22px rgba(118, 75, 162, .35);
    transition: all .2s ease-out;
}
.btn-3d-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(118, 75, 162, .45);
    color: #fff;
}
.btn-3d-gradient:active { transform: translateY(1px); }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.animate-float { animation: float 3s ease-in-out infinite; }
