:root {
    --tchaco-accent: #f6931f;
    /* Brand Orange/Red */
    --tchaco-dark: #121212;
    --tchaco-muted: #6c757d;
    --tchaco-bg: #ffffff;
    --font-main: "system-ui", inter, -apple-system, sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--tchaco-bg);
    color: var(--tchaco-dark);
    /* overflow-x: hidden; */
}

/* ─── Full Page Loader ───────────────────────── */
#page-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#page-loader.hide {
    opacity: 0;
    visibility: hidden;
}

/* ─── Logo Animation ───────────────────────── */
.loader-logo {
    width: 160px;
    max-width: 70%;
    animation: logoPulse 1.6s ease-in-out infinite;
}

/* Smooth opacity pulse */
@keyframes logoPulse {
    0% {
        opacity: 0.3;
        transform: scale(0.98);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0.3;
        transform: scale(0.98);
    }
}
/* ─── Layout ─────────────────────────────────────────────────────── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    background: url("./img/bg2.png");
    object-fit: cover;
    background-size: cover; /* Ensures the image covers the entire area */
    background-position: center;
}

.visual-panel {
    position: relative;
    flex: 1.2;

    /* background-color: var(--tchaco-dark); */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4rem;
    overflow: hidden;
}
.auth-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 60%; /* controls how high the overlay goes */

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.6) 30%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0) 100%
    );

    z-index: 1;
}

.form-panel {
    border-radius: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;

    /* ❌ remove fixed height */
    /* height: 95vh; */

    /* ✅ better spacing */
    margin: 15px;
    width: 100%;
    max-width: 490px;

    align-items: center;
    justify-content: center;

    padding: 1.5rem;
    background: var(--tchaco-bg);
    z-index: 2;

    /* ✅ important for responsiveness */
    min-height: calc(100vh - 30px);
}
@media (max-width: 992px) {
    .visual-panel {
        display: none;
    }

    .auth-wrapper {
        justify-content: center;
        align-items: center;
        padding: 10px;
    }

    .form-panel {
        margin: 0;
        max-width: 100%;
        width: 100%;
        min-height: auto;
        border-radius: 12px;
    }
}

/* ─── Visual Side Elements ────────────────────────────────────────── */
.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}

.visual-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    z-index: 0;
}

.visual-content {
    position: relative;
    z-index: 2;
    max-width: 540px;
}

.brand-logo {
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar::before {
    content: "";
    display: block;
    width: 6px;
    margin-right: 10px;
    height: 50px;
    background: red;
}

.hero-text {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.hero-text span {
    color: var(--tchaco-accent);
}

.hero-sub {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.6;
    font-weight: 400;
}

/* ─── Form Elements ──────────────────────────────────────────────── */
.auth-card {
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.term {
    font-size: 0.9rem;
    font-weight: 300;
    text-decoration: none;
    color: black;
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-title {
    /* font-weight: 700; */
    font-size: 2rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--tchaco-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--tchaco-dark);
}

.form-control {
    padding: 0.55rem 1rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--tchaco-dark);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.btn-auth {
    padding: 0.35rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-primary-tchaco {
    background-color: var(--tchaco-dark);
    color: white;
    border: none;
}

.btn-primary-tchaco:hover {
    color: white;
    background-color: #000;
    transform: translateY(-2px);
}

.btn-outline-tchaco {
    background: white;
    border: 1px solid #e0e0e0;
    color: var(--tchaco-dark);
}

.btn-outline-tchaco:hover {
    border-color: var(--tchaco-dark);
    background: #f8f9fa;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

.divider {
    position: relative;
    text-align: center;
    margin: 1rem 0;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
    z-index: 1;
}

.divider span {
    position: relative;
    background: white;
    padding: 0 1rem;
    color: #999;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--tchaco-muted);
    margin-top: auto;
    padding-top: 15px;
}

.form-footer a {
    color: var(--tchaco-dark);
    text-decoration: none;
    /* font-weight: 600; */
}

.form-footer a:hover {
    text-decoration: underline;
}

.forgot-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--tchaco-dark);
    text-decoration: none;
}

/* ─── Utilities ──────────────────────────────────────────────────── */
.d-none {
    display: none !important;
}

.loading-spinner {
    display: none;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #030303;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-loading .loading-spinner {
    display: inline-block;
}

.btn-loading .btn-text {
    display: none;
}

/* #signup-section header {
    margin-top: rem;
} */
#signup-form {
    margin-top: -30px;
}
/* new add  */

/* otp section */
 .otp-input {
    max-width: 48px;
    height: 48px;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0;
}

#success-section{
    margin-top: 2rem;
}
/* Card container */
.success-box {
    max-width: 360px;
}

/* Icon */
.success-icon {
    width: 38px;
    height: 38px;
    border: 2px solid #84cc16;
    border-radius: 50%;
    color: #84cc16;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 2px; /* optical alignment */
}

/* Title */
.success-title {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
}

/* Subtitle */
.success-subtitle {
    font-size: 0.85rem;
    color: #6c757d;
    /* margin-left: 51px;  */
    line-height: 1.5;
}

/* Button spacing refinement */
/* .success-box .btn {
    height: 42px;
    font-size: 0.9rem;
    border-radius: 8px;
} */
/* ── Eye toggle (password show/hide) ───────────────────── */
.input-wrap {
    position: relative;
}

.has-eye {
    padding-right: 42px;
}

.eye-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #bbbbbb;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.eye-toggle svg {
    width: 18px;
    height: 18px;
}

/* ── Options row (keep-logged + forgot) ─────────────────── */
.options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.keep-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.keep-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--tchaco-dark);
    flex-shrink: 0;
    cursor: pointer;
}

.keep-text {
    font-size: 0.85rem;
    color: var(--tchaco-muted);
    font-weight: 400;
}

/* ── Social row ─────────────────────────────────────────── */
.social-row {
    display: flex;
    gap: 13px;
}

/* ── Terms row (signup only) ────────────────────────────── */
.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 8px;
}

.terms-checkbox {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--tchaco-dark);
    flex-shrink: 0;
    cursor: pointer;
}

.terms-text {
    font-size: 0.85rem;
    color: var(--tchaco-muted);
    line-height: 1.5;
    font-weight: 400;
}

.terms-text a {
    color: var(--tchaco-dark);
    text-decoration: none;
    font-weight: 400;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* back login */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--tchaco-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: var(--tchaco-dark);
}

.back-link svg {
    width: 16px;
    height: 16px;
}