﻿/* =====================================================
   Identity Auth Theme (FINAL FIXED)
   Safe: only affects .auth-* and related classes
===================================================== */

/* Basic reset only for auth pages */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: transparent !important;
}

/* Theme vars */
:root {
    --card: rgba(255,255,255,.95);
    --text: #111;
    --muted: rgba(0,0,0,.65);
    --shadow: 0 25px 90px rgba(0,0,0,.60);
    --radius: 22px;
}

/* Safe box sizing inside auth pages only */
.auth-page,
.auth-page * {
    box-sizing: border-box;
}

/* ==============================
   FULL BACKGROUND (IMAGE + HERO GRADIENT)
================================= */

.auth-page {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    font-family: "Segoe UI", system-ui, Arial, sans-serif;
    /* ✅ Hero gradient overlay + image */
    background: linear-gradient( 135deg, rgba(207,12,12,0.85), rgba(127,13,54,0.85), rgba(20,10,59,0.85) ), url('/img/child-labour.jfif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==============================
   MAIN GLASS CARD (FIXED)
================================= */

.auth-shell {
    width: min(1100px, 100%);
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    z-index: 2;
    /* Glass */
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: var(--shadow);
}

/* ✅ Grid stable + no overflow */
.auth-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    /* ✅ DO NOT force big height */
    min-height: unset;
    /* ✅ keep it nice like screenshot */
    height: auto;
}
/* FIX: prevents grid children overflow on small widths */
.auth-left,
.auth-right {
    min-width: 0;
}

/* ==============================
   LEFT PANEL
================================= */

.auth-left {
    background: var(--card);
    padding: 40px;
    position: relative;
    color: var(--text);
}

    /* soft blob */
    .auth-left::after {
        content: "";
        position: absolute;
        top: -110px;
        right: -200px;
        width: 520px;
        height: 520px;
        background: radial-gradient(circle at 35% 35%, rgba(207,12,12,.12), transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

    .auth-left::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 30% 30%, rgba(127,13,54,.08), transparent 42%), radial-gradient(circle at 70% 70%, rgba(20,10,59,.06), transparent 48%);
        pointer-events: none;
    }

/* Brand row */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

/* ✅ Logo image */
.brand-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,.15);
}

/* Brand text */
.brand .name {
    font-weight: 900;
    font-size: 18px;
    line-height: 1.1;
}

.brand .sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

/* Left content */
.left-hero {
    margin-top: 28px;
    position: relative;
    z-index: 1;
}

    .left-hero h2 {
        margin: 0 0 12px;
        font-size: 30px;
        font-weight: 900;
    }

    .left-hero p {
        margin: 0;
        color: var(--muted);
        line-height: 1.7;
        font-size: 14px;
        max-width: 480px;
    }

/* Optional badge */
.left-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-top: 16px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(207,12,12,.06);
    color: rgba(0,0,0,.75);
    font-weight: 800;
    font-size: 12px;
}

/* ==============================
   RIGHT PANEL (FORM)
================================= */

.auth-right {
    padding: 40px;
    color: #fff;
    background: linear-gradient( 135deg, rgba(0,0,0,.25), rgba(0,0,0,.45) );
}

/* Form box */
.form-box {
    max-width: 360px;
    margin: 0 auto;
}

    .form-box h1 {
        margin: 0 0 8px;
        font-size: 28px;
        font-weight: 900;
    }

    .form-box .hint {
        margin: 0 0 20px;
        font-size: 13px;
        opacity: .8;
        line-height: 1.6;
    }

/* Labels */
.auth-label {
    font-size: 12px;
    font-weight: 800;
    margin: 12px 0 6px;
    color: rgba(255,255,255,.78);
}

/* Inputs */
.auth-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.20);
    background: rgba(0,0,0,.26);
    color: #fff;
    outline: none;
}

    .auth-input::placeholder {
        color: rgba(255,255,255,.55);
    }

    .auth-input:focus {
        border-color: rgba(255,255,255,.42);
        box-shadow: 0 0 0 3px rgba(255,255,255,.15);
    }

/* Buttons */
.auth-btn {
    width: 100%;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 22px;
    border: none;
    font-weight: 900;
    cursor: pointer;
    transition: .2s ease;
    background: linear-gradient(135deg, #ff2a2a, #8a0833);
    color: #fff;
}

    .auth-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 26px rgba(0,0,0,.30);
    }

.auth-btn-sm {
    width: auto;
    padding: 10px 14px;
    border-radius: 18px;
}

/* Links + rows */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.auth-link {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    opacity: .86;
}

    .auth-link:hover {
        opacity: 1;
        text-decoration: underline;
    }

.auth-divider {
    height: 1px;
    background: rgba(255,255,255,.18);
    margin: 18px 0;
}

/* ==============================
   RESPONSIVE (NO BREAK)
================================= */

@media (max-width: 992px) {
    .auth-grid {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    .auth-left,
    .auth-right {
        padding: 28px 18px;
    }

    .brand-logo {
        width: 52px;
        height: 52px;
    }

    .left-hero h2 {
        font-size: 26px;
    }
}

/* Very small phones */
@media (max-width: 420px) {
    .auth-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ===== Manage Nav styling ===== */
.manage-nav {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    position: relative;
    z-index: 1;
}

    .manage-nav li {
        margin-bottom: 10px;
    }

.manage-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    color: rgba(0,0,0,.78);
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(255,255,255,.55);
    transition: .15s ease;
}

    .manage-link:hover {
        background: rgba(207,12,12,.07);
        border-color: rgba(207,12,12,.18);
    }

    .manage-link.active {
        background: rgba(207,12,12,.12);
        border-color: rgba(207,12,12,.25);
        color: rgba(0,0,0,.90);
    }