/* =========================
   Auth Page Only Styles
   Global root/body/container/font/header/footer must stay in app.blade.php
========================= */

/* Breadcrumb */

.breadcrumb-section {
    padding: 26px 0 12px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.breadcrumb .current,
.breadcrumb a:hover {
    color: var(--primary);
}

/* =========================
   Auth Layout
========================= */

.auth-section {
    padding: 12px 0 46px;
}

.auth-layout {
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 24px;
    align-items: stretch;
}

.auth-hero,
.auth-card,
.benefit-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(30, 30, 30, 0.08);
    box-shadow: var(--shadow-soft);
    border-radius: 34px;
}

/* =========================
   Auth Hero
========================= */

.auth-hero {
    background: linear-gradient(135deg, #111827, #19346f 58%, #2356d8);
    color: #fff;
    padding: 42px;
    position: relative;
    overflow: hidden;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    isolation: isolate;
}

.auth-hero::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    z-index: -1;
}

.auth-hero::after {
    content: "LOGIN";
    position: absolute;
    left: 24px;
    bottom: -14px;
    font-size: clamp(80px, 12vw, 170px);
    font-weight: 950;
    color: rgba(255, 255, 255, 0.06);
    letter-spacing: -4px;
    z-index: -1;
    pointer-events: none;
}

.hero-kicker {
    display: inline-flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 16px;
}

.auth-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.35;
    letter-spacing: -1.2px;
}

.auth-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 2;
    max-width: 720px;
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 26px;
}

.hero-point {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 22px;
    padding: 18px;
    backdrop-filter: blur(10px);
}

.hero-point strong {
    display: block;
    margin-bottom: 7px;
}

.hero-point span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.8;
}

/* =========================
   Decorative Books
========================= */

.auth-books {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-top: 34px;
}

.auth-book {
    width: 105px;
    height: 150px;
    border-radius: 14px 24px 24px 14px;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.25);
    display: grid;
    place-items: center;
    text-align: center;
    font-weight: 950;
    padding: 12px;
    line-height: 1.5;
    transform: rotate(var(--r)) translateY(var(--y));
    font-size: 13px;
}

.auth-book:nth-child(2) {
    height: 182px;
}

.auth-book:nth-child(3) {
    height: 132px;
}

/* =========================
   Auth Card
========================= */

.auth-card {
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    left: -80px;
    top: -80px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(35, 86, 216, 0.08);
    pointer-events: none;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f3f6ff;
    border-radius: 20px;
    padding: 6px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.auth-tabs .tab-btn {
    border: 0;
    background: transparent;
    border-radius: 16px;
    min-height: 48px;
    cursor: pointer;
    font-weight: 950;
    color: #4b5563;
    transition: 0.2s ease;
}

.auth-tabs .tab-btn.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(16, 24, 40, 0.08);
}

.auth-title {
    position: relative;
    z-index: 1;
}

.auth-title h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.auth-title p {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.9;
    font-size: 13px;
}

/* =========================
   Forms
========================= */

.auth-form {
    display: none;
    gap: 13px;
    position: relative;
    z-index: 1;
}

.auth-form.active {
    display: grid;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 900;
    color: #374151;
}

.input-wrap {
    position: relative;
}

.input-wrap input {
    width: 100%;
    height: 52px;
    border: 1px solid rgba(30, 30, 30, 0.1);
    border-radius: 18px;
    outline: none;
    padding: 0 44px 0 14px;
    background: #fff;
    transition: 0.2s ease;
}

.input-wrap input:focus {
    border-color: rgba(35, 86, 216, 0.45);
    box-shadow: 0 10px 24px rgba(35, 86, 216, 0.08);
}

.field-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    translate: 0 -50%;
    color: var(--primary);
}

.toggle-pass {
    position: absolute;
    left: 10px;
    top: 50%;
    translate: 0 -50%;
    border: 0;
    background: #f8fafc;
    color: #6b7280;
    border-radius: 12px;
    height: 34px;
    padding: 0 10px;
    cursor: pointer;
    transition: 0.2s ease;
}

.toggle-pass:hover {
    background: #eef2ff;
    color: var(--primary);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: #4b5563;
    font-size: 13px;
}

.check {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.check input {
    accent-color: var(--primary);
}

.link {
    color: var(--primary);
    font-weight: 900;
}

.submit-btn {
    border: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    border-radius: 19px;
    height: 54px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(35, 86, 216, 0.22);
    font-size: 15px;
    transition: 0.22s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(35, 86, 216, 0.28);
}

/* =========================
   Divider / Social
========================= */

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
    margin: 4px 0;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    background: rgba(30, 30, 30, 0.08);
    flex: 1;
}

.social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.social-btn {
    height: 48px;
    border: 1px solid rgba(30, 30, 30, 0.1);
    background: #fff;
    border-radius: 17px;
    font-weight: 900;
    cursor: pointer;
    color: #374151;
    transition: 0.2s ease;
}

.social-btn:hover {
    background: #f3f6ff;
    color: var(--primary);
    transform: translateY(-2px);
}

/* =========================
   OTP
========================= */

.otp-box {
    display: none;
    background: #f8fafc;
    border: 1px solid rgba(30, 30, 30, 0.06);
    border-radius: 22px;
    padding: 16px;
    margin-top: 6px;
}

.otp-box.show {
    display: block;
}

.otp-inputs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.otp-inputs input {
    height: 48px;
    text-align: center;
    border: 1px solid rgba(30, 30, 30, 0.1);
    border-radius: 14px;
    font-size: 18px;
    font-weight: 950;
    outline: none;
}

.otp-inputs input:focus {
    border-color: rgba(35, 86, 216, 0.45);
    box-shadow: 0 8px 18px rgba(35, 86, 216, 0.08);
}

/* =========================
   Password Strength
========================= */

.password-strength {
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 20%;
    background: var(--danger);
    border-radius: 999px;
    transition: 0.2s ease;
}

.strength-text {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
}

/* =========================
   Benefits
========================= */

.benefit-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.benefit-card {
    padding: 18px;
    text-align: center;
    transition: 0.22s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: #f3f6ff;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 24px;
    margin: 0 auto 12px;
}

.benefit-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.benefit-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

/* =========================
   Errors
========================= */

.auth-card .error,
.auth-form .error {
    color: var(--danger);
    font-size: 12px;
    display: none;
    line-height: 1.8;
}

.auth-card .error.show,
.auth-form .error.show {
    display: block;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1100px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        min-height: auto;
    }

    .benefit-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .hero-points {
        grid-template-columns: 1fr;
    }

    .auth-books {
        display: none;
    }

    .social-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .breadcrumb-section {
        padding: 18px 0 10px;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .auth-section {
        padding: 10px 0 34px;
    }

    .auth-hero,
    .auth-card {
        padding: 20px;
        border-radius: 24px;
    }

    .auth-hero h1 {
        font-size: 31px;
    }

    .auth-hero p {
        font-size: 13px;
    }

    .hero-point {
        border-radius: 18px;
        padding: 14px;
    }

    .auth-tabs {
        border-radius: 16px;
    }

    .auth-tabs .tab-btn {
        min-height: 44px;
        border-radius: 13px;
        font-size: 13px;
    }

    .auth-title h2 {
        font-size: 24px;
    }

    .input-wrap input {
        height: 50px;
        border-radius: 16px;
    }

    .submit-btn {
        height: 52px;
        border-radius: 16px;
    }

    .benefit-row {
        grid-template-columns: 1fr;
    }

    .form-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .otp-inputs {
        gap: 5px;
    }

    .otp-inputs input {
        height: 44px;
        font-size: 16px;
    }
}
