/* ============================================================
   base-auth.css — Auth pages — Cover-style vibrant design
   Mobile-first · Myron-inspired · PCS Brand
   ============================================================ */

body, * {
    font-family: "Montserrat Alternates", "DM Sans", sans-serif !important;
}

:root {
    --primary-rgb: 233, 63, 105;
    --primary: rgb(var(--primary-rgb));
    --accent-purple: #7c3aed;
    --accent-orange: #f97316;
    --accent-cyan: #06b6d4;
    --gradient-hero: linear-gradient(135deg, #e93f69 0%, #7c3aed 50%, #3b82f6 100%);
    --gradient-btn: linear-gradient(135deg, #e93f69 0%, #c03070 50%, #7c3aed 100%);
    --radius-card: 1.5rem;
    --radius-input: 0.75rem;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ════════════════════════════════════
   LAYOUT — Cover split
   ════════════════════════════════════ */

.auth-bg {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: #f8f9fc;
    overflow: hidden;
}

.auth-wrapper {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ── Left cover panel ── */
.auth-cover-panel {
    display: none; /* Hidden on mobile */
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
    flex: 0 0 50%;
    max-width: 50%;
}

.auth-cover-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 3rem;
    color: #fff;
}

.auth-cover-logo {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.auth-cover-logo-img {
    width: 48px;
    height: 48px;
    filter: brightness(10);
}

.auth-cover-logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    margin-left: 0.75rem;
    letter-spacing: -0.02em;
}

.auth-cover-tagline h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    letter-spacing: -0.03em;
}

.auth-cover-tagline p {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.6;
    margin-top: 1rem;
    max-width: 380px;
}

/* Cover features */
.auth-cover-features {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 2.5rem;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

.auth-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* Decorative shapes — animated */
.auth-cover-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-cover-shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.06);
    top: -80px;
    right: -60px;
    animation: shapeFloat1 15s ease-in-out infinite;
}

.auth-cover-shape-2 {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    bottom: -40px;
    left: -40px;
    animation: shapeFloat2 18s ease-in-out infinite;
}

.auth-cover-shape-3 {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.08);
    top: 40%;
    right: 15%;
    animation: shapeFloat3 12s ease-in-out infinite;
}

.auth-cover-shape-4 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    bottom: 20%;
    left: 20%;
    animation: shapeFloat1 20s ease-in-out infinite reverse;
}

@keyframes shapeFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33%      { transform: translate(20px, -30px) rotate(5deg); }
    66%      { transform: translate(-15px, 15px) rotate(-3deg); }
}
@keyframes shapeFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(25px, -20px) scale(1.05); }
}
@keyframes shapeFloat3 {
    0%, 100% { transform: translate(0, 0); }
    25%      { transform: translate(-10px, 20px); }
    75%      { transform: translate(15px, -10px); }
}

/* ── Right form panel ── */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: #fff;
    position: relative;
    overflow-y: auto;
}

.auth-form-inner {
    width: 100%;
    max-width: 420px;
    animation: formEntry 0.6s ease-out;
}

@keyframes formEntry {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════
   MOBILE LOGO
   ════════════════════════════════════ */
.auth-mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: var(--radius-card);
    background: var(--gradient-hero);
}

.auth-mobile-logo .auth-logo {
    width: 36px;
    height: 36px;
    filter: brightness(10);
}

.auth-mobile-logo .auth-app-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    margin-left: 0.6rem;
}

/* ════════════════════════════════════
   TITLES
   ════════════════════════════════════ */
.auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 0.88rem;
    color: #8c9097;
    margin-bottom: 0;
}

/* ════════════════════════════════════
   FORM
   ════════════════════════════════════ */
.auth-form-inner .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #3a3a4a;
    margin-bottom: 0.4rem;
}

/* Input with left icon */
.input-icon-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 1.1rem;
    z-index: 2;
    transition: color var(--transition);
}

.form-control-icon {
    padding-left: 2.75rem !important;
}

.input-icon-wrap:focus-within .input-icon {
    color: var(--primary);
}

.auth-form-inner .form-control {
    border-radius: var(--radius-input);
    border: 1.5px solid #e2e4ea;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    background: #f8f9fc;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.auth-form-inner .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.08);
    background: #fff;
}

.auth-form-inner .form-control::placeholder {
    color: #b8b8c4;
    font-size: 0.85rem;
}

/* ── Password toggle ── */
.show-password-button {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #adb5bd;
    z-index: 3;
    transition: color var(--transition);
    line-height: 1;
}

.show-password-button:hover {
    color: var(--primary);
}

/* ── Checkbox ── */
.auth-form-inner .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.auth-form-inner .form-check-label {
    font-size: 0.82rem;
    color: #6b6b7b;
}

/* ── Links ── */
.auth-link {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition);
}

.auth-link:hover {
    color: var(--accent-purple);
}

/* ════════════════════════════════════
   BUTTON — Vibrant gradient + shimmer
   ════════════════════════════════════ */
.auth-btn {
    border-radius: var(--radius-input);
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: var(--gradient-btn);
    background-size: 200% auto;
    border: none;
    color: #fff;
    transition: transform var(--transition), box-shadow var(--transition), background-position 0.5s ease;
    position: relative;
    overflow: hidden;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.35), 0 4px 12px rgba(124, 58, 237, 0.2);
    background-position: right center;
    color: #fff;
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.2);
}

/* ════════════════════════════════════
   ALERTS
   ════════════════════════════════════ */
.auth-form-inner .alert {
    font-size: 0.82rem;
    border-radius: var(--radius-input);
    border: none;
}

.auth-form-inner .alert-danger {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), rgba(var(--primary-rgb), 0.12));
    color: rgb(180, 40, 70);
}

.auth-form-inner .alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.06), rgba(40, 167, 69, 0.12));
    color: rgb(30, 120, 50);
}

.auth-form-inner .alert-info {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.06), rgba(13, 110, 253, 0.12));
    color: rgb(10, 80, 180);
}

/* ── Auth icon (reset pages) ── */
.auth-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.25);
}

.auth-icon-wrap i {
    font-size: 1.6rem;
    color: #fff;
}

/* ── Footer ── */
.auth-footer {
    font-size: 0.72rem;
    color: #b8b8c4;
    margin-top: 2rem;
    margin-bottom: 0;
}

/* ════════════════════════════════════════
   RESPONSIVE — Mobile first
   ════════════════════════════════════════ */

/* ── Phones (< 576px) ── */
@media (max-width: 575.98px) {
    .auth-form-panel {
        padding: 1rem;
    }

    .auth-form-inner {
        max-width: 100%;
    }

    .auth-title {
        font-size: 1.4rem;
    }

    .auth-mobile-logo {
        padding: 0.85rem;
        border-radius: 1rem;
    }
}

/* ── Tablets (576px - 991px) ── */
@media (min-width: 576px) and (max-width: 991.98px) {
    .auth-form-panel {
        padding: 2rem;
    }

    .auth-form-inner {
        max-width: 440px;
    }
}

/* ── Desktop (992px+) — Show cover panel ── */
@media (min-width: 992px) {
    .auth-cover-panel {
        display: block;
    }

    .auth-form-panel {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 3rem;
    }

    .auth-form-inner {
        max-width: 420px;
    }

    .auth-title {
        font-size: 1.75rem;
    }
}

/* ── Large desktop (1400px+) ── */
@media (min-width: 1400px) {
    .auth-cover-panel {
        flex: 0 0 55%;
        max-width: 55%;
    }

    .auth-form-panel {
        flex: 0 0 45%;
        max-width: 45%;
    }

    .auth-cover-tagline h2 {
        font-size: 2.6rem;
    }

    .auth-cover-content {
        padding: 4rem;
    }
}

/* ── Landscape phones ── */
@media (max-height: 500px) and (orientation: landscape) {
    .auth-form-panel {
        padding: 0.75rem;
    }

    .auth-mobile-logo {
        margin-bottom: 1rem;
        padding: 0.6rem;
    }

    .auth-title {
        font-size: 1.2rem;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .auth-cover-shape,
    .auth-form-inner,
    .auth-btn,
    .auth-btn::before {
        animation: none !important;
        transition: none !important;
    }
}
