﻿/* ===========================
   Auth – Common Styling
   =========================== */

/* Design tokens */
:root {
    --accent: #ff3b30;
    --accent-2: #ff6b58;
    --muted: #eff0f3;
    --dark: #0f1724;
    --glass: rgba(255,255,255,0.06);
    --glass-strong: rgba(255, 255, 255, 0.96);
    --radius: 12px;
    --max-width: 1200px;
    --container-padding: clamp(1rem, 3vw, 2.25rem);
    --elev: 0 12px 30px rgba(6,8,14,0.14);
}

/* Box-sizing reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.navbar-brand span {
    font-size: 16px;
}

.nav-link {
    font-weight: 500;
}

    .nav-link:hover {
        color: #E2000F !important;
    }


/* Global Inter font override */
html,
body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* Make sure form controls also use Inter */
input,
button,
select,
textarea,
label,
a,
p,
span {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* Body background (optional – comment/uncomment as you like) */
/*
body {
    background-color: #020617;
}
*/

a {
    color: var(--accent)!important;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* Muted & small helpers (for footer / hint text) */
.muted {
    color: #6b7280;
}

.small {
    font-size: 0.85rem;
}

/* Animated underline for links inside card-panel */
.card-panel a {
    position: relative;
    text-decoration: none !important; /* we animate underline instead */
}

    /* The animated line, initially hidden */
    .card-panel a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        height: 2px;
        width: 0;
        background: linear-gradient(90deg, var(--accent), var(--accent-2));
        transition: width 0.26s ease;
    }

    /* On hover: line expands */
    .card-panel a:hover::after {
        width: 100%;
    }

    /* Prevent default underline in card-panel on hover */
    .card-panel a:hover {
        text-decoration: none !important;
    }

/* Background hero section */
.bg-section {
    min-height: 100vh;
 background-image:url('../images/bg12.jpg');
   
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: var(--container-padding);
    transition: background-position .9s ease;
}

    .bg-section:hover {
        background-position: calc(50% + 4%) center;
    }

.bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,12,16,0.18), rgba(10,12,16,0.28));
    z-index: 0;
    pointer-events: none;
}

/* Brand logo top-right */
.brand-right {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
    will-change: transform;
}

    .brand-right img {
        height: 46px;
        width: auto;
        display: block;
        border-radius: 6px;
        transition: transform .22s cubic-bezier(.2,.9,.3,1), box-shadow .22s ease;
        will-change: transform, box-shadow;
    }

    .brand-right:hover img,
    .brand-right:focus img {
        transform: translateY(-4px) rotate(-2deg) scale(1.04);
        box-shadow: 0 12px 34px rgba(0,0,0,0.16);
    }

    .brand-right strong {
        color: white;
        font-weight: 700;
        font-size: 0.98rem;
        text-shadow: 0 2px 6px rgba(0,0,0,0.35);
    }

@media (max-width: 720px) {
    .brand-right img {
        height: 40px;
    }

    .brand-right strong {
        display: none;
    }
}

@media (max-width: 420px) {
    .brand-right img {
        height: 34px;
        right: 10px;
        top: 10px;
    }
}

/* Main layout container */
.content {
    position: relative;
    z-index: 2;
    width: min(100%, var(--max-width));
    margin: 0 auto;
}

/* Glass panel */
.glass {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    border-radius: var(--radius);
    padding: clamp(1rem, 2.5vw, 2rem);
    box-shadow: var(--elev);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    transition: transform .3s cubic-bezier(.2,.9,.2,1), box-shadow .25s ease;
}

    .glass:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 50px rgba(6,8,14,0.18);
    }

/* 2-column hero grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: clamp(1rem,2.5vw,2rem);
    align-items: center;
}

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

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

/* Typography */
.hero-title {
    font-weight: 800;
    font-size: clamp(1.6rem, 5.6vw, 3.2rem);
    line-height: 1.02;
    margin: 0 0 .5rem 0;
    color: #fff;
    text-shadow: 0 8px 24px rgba(4,6,12,0.45);
    transform-origin: left center;
}

    .hero-title .accent {
        color: var(--accent);
    }

.hero-sub {
    margin: 0 0 1.1rem 0;
    color: rgba(255,255,255,0.94);
    max-width: 56ch;
    font-size: clamp(.95rem,1.8vw,1.05rem);
    transition: transform .35s ease, opacity .35s ease;
}

/* Floating animation */
.float-y {
    animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Hero visual */
.hero-visual {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.38);
    transition: transform .45s cubic-bezier(.2,.9,.2,1), filter .35s ease;
    will-change: transform;
    transform-origin: center center;
    position: relative;
}

    .hero-visual img {
        display: block;
        width: 100%;
        height: auto;
        transition: opacity .6s ease, transform .6s ease;
    }

        .hero-visual img.is-fading-out {
            opacity: 0;
            transform: translateX(-10px) scale(0.98);
        }

    .hero-visual:hover {
        transform: scale(1.03) rotate(-0.6deg);
        filter: saturate(1.06) contrast(1.02);
    }

/* Right-side auth card */
.card-panel {
    background: var(--glass-strong);
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 10px 26px rgba(6,8,14,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
    overflow: hidden;
}

    .card-panel::after {
        content: '';
        position: absolute;
        inset: -40% -30% auto -30%;
        height: 220px;
        background: radial-gradient(closest-side, rgba(255,59,48,0.06), transparent 60%);
        transform: rotate(-18deg);
        pointer-events: none;
    }

    .card-panel:hover {
        transform: translateY(-6px) scale(1.01);
        box-shadow: 0 20px 38px rgba(6,8,14,0.08);
    }

    .card-panel .title {
        font-weight: 700;
        color: var(--dark);
        margin-bottom: .35rem;
    }

    .card-panel p.lead {
        margin-bottom: 1rem;
        color: #4b5563;
        font-size: .95rem;
    }

/* For Signup layout: scroll + fixed footer (if you reuse) */
.card-panel-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.form-scroll {
    flex: 1 1 auto;
    max-height: 420px;
    overflow-y: auto;
    margin-bottom: 0.75rem;
    padding-right: 0.25rem;
}

.form-footer-fixed {
    flex-shrink: 0;
    border-top: 1px solid rgba(148,163,184,0.35);
    padding-top: 0.75rem;
    background-color: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
}

/* Forms / controls */
label,
.form-label,
.form-small {
    font-size: 0.9rem;
    color: #374151;
}

.form-control,
.form-select {
    font-size: 0.95rem;
    padding: 0.55rem 0.75rem;
}

    .form-control::placeholder {
        color: #9ca3af;
    }

    .form-control:focus,
    .form-select:focus {
        box-shadow: 0 8px 22px rgba(14,165,233,0.08);
        border-color: rgba(14,165,233,0.6);
    }

/* Password show/hide button */
.pwd-toggle {
    position: absolute;
    right: .6rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    padding: .2rem;
    font-weight: 600;
    font-size: 0.8rem;
}

.form-row {
    position: relative;
}

/* Accent button */
.btn-accent {
    background: linear-gradient(90deg,var(--accent), var(--accent-2));
    border: none;
    color: #fff;
    font-weight: 600;
    padding: .7rem;
    border-radius: 10px;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
    will-change: transform;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

    .btn-accent:hover {
        transform: translateY(-3px) scale(1.01);
        box-shadow: 0 14px 34px rgba(255,59,48,0.14);
    }

    .btn-accent:active {
        transform: translateY(-1px) scale(.998);
    }

    /* Button pulse dot */
    .btn-accent .pulse {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255,255,255,0.18);
        box-shadow: 0 0 0 rgba(255,255,255,0.12);
        animation: pulse 1.8s infinite;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    70% {
        transform: scale(1.9);
        opacity: .2;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Form error text */
.form-error {
    color: #b91c1c;
    font-size: .85rem;
    margin-top: .35rem;
    display: none;
}

/* Footer */
footer.site-footer {
    text-align: center;
    margin-top: 1rem;
    color: var(--muted);
    font-size: .9rem;
}

/* Accessibility focus ring */
.focus-ring:focus {
    outline: 3px solid rgba(14,165,233,0.12);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Entrance animation */
.animate-up {
    transform: translateY(8px);
    opacity: 0;
    animation: upfade .5s cubic-bezier(.2,.9,.2,1) forwards .08s;
}

@keyframes upfade {
    to {
        transform: none;
        opacity: 1;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .animate-up,
    .hero-visual,
    .btn-accent .pulse,
    .float-y {
        transition: none;
        animation: none;
        transform: none !important;
    }
}

/* Mobile tweaks */
@media (max-width:780px) {
    .hero-title {
        text-align: center;
    }

    .hero-sub {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .card-panel {
        margin-top: .8rem;
    }

    .hero-visual {
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width:420px) {
    .card-panel {
        padding: .9rem;
    }
}


