@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');


/* ── Design tokens ──────────────────────────────────────── */
:root {
    --primary:       #8b2331;   /* burgundy */
    --primary-light: #a83b49;
    --primary-dark:  #5b1721;
    --accent:        #d4a857;   /* gold */
    --accent-light:  #f0cf8e;
    --accent-dark:   #9a7424;
    --ink:           #0d1730;
    --ink-soft:      #44506b;
    --muted:         #7d889e;
    --surface:       #ffffff;
    --surface-alt:   #f6f7fa;
    --line:          #e0e4ec;
    --error:         #e5484d;
    --success:       #2fa866;


    --radius-card:   20px;
    --radius-field:  12px;
    --radius-btn:    12px;


    --shadow-card:   0 30px 80px rgba(4, 10, 28, .45), 0 6px 18px rgba(4, 10, 28, .25);
    --shadow-btn:    0 8px 22px rgba(212, 168, 87, .35);
    --ring:          0 0 0 4px rgba(212, 168, 87, .22);


    --transition:    .5s cubic-bezier(.4, 0, .2, 1);
    --font:          'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}


/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
a { text-decoration: none; }


/* ── Page shell ─────────────────────────────────────────── */
body {
    font-family: var(--font);
    color: var(--ink);
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    background: radial-gradient(1000px 600px at 50% 0%, #a83b49 0%, #741d2a 70%, #5b1721 100%);
    background-attachment: fixed;
}




/* hexagon network background (keeps your asset) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url(../images/login-bg.png) center / cover no-repeat;
    pointer-events: none;
    z-index: 0;
}


/* ── Layout ─────────────────────────────────────────────── */
.login-register {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    padding: 24px max(16px, env(safe-area-inset-left)) 24px max(16px, env(safe-area-inset-right));
}


/* ── Card ───────────────────────────────────────────────── */
.form-container {
    position: relative;
    width: 960px;
    max-width: 100%;
    min-height: 600px;
    background: var(--surface);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    animation: cardReveal .7s cubic-bezier(.22, 1, .36, 1) both;
}


@keyframes cardReveal {
    from { opacity: 0; transform: translateY(28px) scale(.98); }
    to   { opacity: 1; transform: none; }
}


.form-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    z-index: 200;
}


/* ── Panels ─────────────────────────────────────────────── */
.form-panel {
    position: absolute;
    top: 0; left: 0;
    width: 50%;
    height: 100%;
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition), transform var(--transition);
    will-change: transform, opacity;
}
.form-panel.active { opacity: 1; z-index: 2; }


.font-panel, .log-in                         { transform: translateX(-36px); }
.sign-up, .forget-panel, .forget-otp-panel   { transform: translateX(36px); }


.font-panel.active, .log-in.active,
.sign-up.active, .forget-panel.active,
.forget-otp-panel.active                     { transform: translateX(0); }


.form-container.right-panel-active .font-panel,
.form-container.right-panel-active .log-in { transform: translateX(0); }


.form-container.right-panel-active .sign-up {
    opacity: 1;
    z-index: 5;
    width: 50%;
    transform: translateX(100%);
}


/* ── Overlay ────────────────────────────────────────────── */
.overlay-container {
    position: absolute;
    top: 0; left: 50%;
    width: 50%; height: 100%;
    overflow: hidden;
    z-index: 100;
    transition: transform var(--transition);
}
.form-container.right-panel-active .overlay-container { transform: translateX(-100%); }


.form-overlay {
    position: absolute;
    inset: 0;
    display: flex;
   background: linear-gradient(150deg, #5b1721 0%, #8b2331 55%, #b13a49 100%);

	<!--background: linear-gradient(150deg, #350b12 0%, #641722 55%, #8b2331 100%) !important;-->
    overflow: hidden;
}


/* decorative glow blobs */
.form-overlay::before,
.form-overlay::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}
.form-overlay::before { width: 320px; height: 320px; top: -90px;  right: -80px; background: rgba(212, 168, 87, .35); }
.form-overlay::after  { width: 280px; height: 280px; bottom: -90px; left: -70px;  background: rgba(212, 168, 87, .20); }


.overlay-left, .overlay-right {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px;
    text-align: center;
    transition: opacity var(--transition), transform var(--transition);
}
.overlay-left  { opacity: 0; transform: translateX(-20px); pointer-events: none; }
.overlay-right { opacity: 1; transform: none;              pointer-events: auto; }


.form-container.right-panel-active .overlay-left  { opacity: 1; transform: none;             pointer-events: auto; }
.form-container.right-panel-active .overlay-right { opacity: 0; transform: translateX(20px); pointer-events: none; }


.overlay-left img, .overlay-right img {
    width: 72%;
    max-width: 260px;
    margin-bottom: 16px;
    padding: 10px;
    background: rgba(255, 255, 255, .94);
    border-radius: 24px;
    border: 1px solid rgba(240, 207, 142, .55);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}


.form-overlay h2 {
    color: var(--accent-light);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: .01em;
}


/* ── Form body ──────────────────────────────────────────── */
.sign-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 36px 48px;
    background: var(--surface);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}
.sign-form::-webkit-scrollbar       { width: 4px; }
.sign-form::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }


 /*.sign-form > a > img {
    width: 20%;
   max-width: 100%;
    margin-bottom: 18px;
    transition: transform .3s ease;
}*/
.sign-form > a > img{
width:100%;
}
.log_img{
width:60%;
}
.sign-form > a > img:hover { transform: scale(1.04); }


.sign-form h1 {
    font-size: clamp(22px, 3.4vw, 30px);
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(90deg, var(--primary-dark), var(--accent-dark), var(--primary-dark));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }


.sign-form label,
.text-start.w-100 label {
    display: block;
    width: 100%;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--ink-soft);
    text-align: left;
}


/* ── Inputs ─────────────────────────────────────────────── */
.frm-inpt {
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 12px;
    background: var(--surface-alt);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-field);
    color: var(--ink);
    font: 400 14px var(--font);
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.frm-inpt::placeholder { color: var(--muted); }
.frm-inpt:hover        { border-color: #c9ced9; }
.frm-inpt:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: var(--ring);
}
.frm-inpt[readonly] { color: var(--ink-soft); cursor: default; background: #eef3f7; }


.textbox-background-error {
    background: rgba(229, 72, 77, .06) !important;
    border-color: var(--error) !important;
    box-shadow: 0 0 0 4px rgba(229, 72, 77, .12) !important;
}
.textbox-background-ok {
    background: rgba(47, 168, 102, .06) !important;
    border-color: var(--success) !important;
}


/* ── Password field ─────────────────────────────────────── */
.password-container { position: relative; width: 100%; }
.password-container .frm-inpt { padding-right: 46px; }


.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-60%);
    padding: 4px;
    line-height: 1;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    transition: color .2s;
}
.password-toggle:hover { color: var(--accent-dark); }
.password-toggle:focus { outline: none; }


/* ── Buttons ────────────────────────────────────────────── */
.btn { cursor: pointer; }


.sign-btn, .otp-btn {
    width: 100%;
    padding: 14px 20px;
    margin: 14px 0 6px;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent) 45%, var(--accent-light));
    border: none;
    border-radius: var(--radius-btn);
    color: var(--primary-dark);
    font: 600 13px var(--font);
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition: transform .15s ease, box-shadow .25s ease, filter .25s ease;
}
.sign-btn:hover, .otp-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 12px 30px rgba(212, 168, 87, .5);
}
.sign-btn:active, .otp-btn:active { transform: scale(.98); }
.sign-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }
.signup-btn { margin-top: 4px; }


/* ghost buttons on the overlay */
#signin, #signup {
    width: auto;
    min-width: 150px;
    margin: 10px 0 0;
    padding: 12px 32px;
    background: rgba(212, 168, 87, .08);
    border: 1.5px solid var(--accent);
    color: var(--accent-light);
    box-shadow: none;
    backdrop-filter: blur(6px);
}
#signin:hover, #signup:hover {
    background: var(--accent);
    color: var(--primary-dark);
    filter: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}


/* ── Divider ────────────────────────────────────────────── */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 12px 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}


/* ── Google button ──────────────────────────────────────── */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-btn);
    color: var(--ink);
    font: 500 14px var(--font);
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}
.btn-google svg { flex-shrink: 0; width: 18px; height: 18px; }
.btn-google:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 18px rgba(139, 35, 49, .12);
    transform: translateY(-1px);
    color: var(--ink);
}
.btn-google:active { transform: scale(.98); }


/* ── Alerts ─────────────────────────────────────────────── */
.form-alert {
    display: none;
    width: 100%;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 4px solid transparent;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    animation: alertSlide .3s ease both;
}
.form-alert i { font-size: 14px; flex-shrink: 0; vertical-align: -1px; }
@keyframes alertSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
}
.form-alert.alert-error   { color: #b42328; background: rgba(229, 72, 77, .09);  border-left-color: var(--error); }
.form-alert.alert-success { color: #1d7a49; background: rgba(47, 168, 102, .10); border-left-color: var(--success); }


/* toast variants (older markup) */
.error-message, .success-message {
    position: fixed;
    top: 20px; right: 20px;
    z-index: 1000;
    display: none;
    padding: 14px 16px;
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}
.error-message   { background: var(--error); }
.success-message { background: var(--success); }
.close-button {
    margin-left: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}


/* ── Text links ─────────────────────────────────────────── */
.back-to-login, #show-forget {
    background: none;
    border: none;
    color: var(--primary-light);
    font: 500 13px var(--font);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 4px;
    transition: color .2s;
}
.back-to-login:hover, #show-forget:hover { color: var(--primary); }
#show-forget { align-self: flex-end; margin: -4px 0 6px; padding: 0; }


.back-to-font {
    background: none;
    border: none;
    color: var(--muted);
    font: 500 12px var(--font);
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 4px;
    transition: color .2s;
}
.back-to-font:hover { color: var(--accent-dark); }


.log-back {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
}
.log-back .sign-btn { margin: 0; flex: 1; min-width: 120px; }


.back-home { margin-top: 12px; }
.back-home a {
    color: var(--muted) !important;
    font-size: 13px;
    font-weight: 500;
    transition: color .2s;
}
.back-home a:hover { color: var(--accent-dark) !important; }


/* ── Floating WhatsApp / social ─────────────────────────── */
.social-fixed-icons {
    position: fixed;
    right: 24px; bottom: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.social-fixed-icons .wa img {
    width: 46px; height: 46px;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    transition: transform .25s ease, box-shadow .25s ease;
}
.social-fixed-icons .wa img:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
}


/* ── Utilities ──────────────────────────────────────────── */
.w-100 { width: 100%; }
.text-start { text-align: left; }


/* ═══ Responsive ═══════════════════════════════════════════ */


/* Tablet */
@media (min-width: 641px) and (max-width: 900px) {
    .form-container { min-height: 570px; }
    .sign-form { padding: 28px 30px; }
    .sign-form > a > img { width: 105px; }
    .overlay-left img, .overlay-right img { max-width: 200px; }
}


/* Large */
@media (min-width: 1100px) {
    .sign-form { padding: 40px 56px; }
}


/* Mobile */
@media (max-width: 640px) {
    body { background-attachment: scroll; }


    .login-register { padding: 16px max(12px, env(safe-area-inset-left)) 16px max(12px, env(safe-area-inset-right)); }


    .form-container {
        width: 100%;
        min-height: auto;
        border-radius: 16px;
    }


    .overlay-container { display: none !important; }


    .form-panel {
        position: relative !important;
        top: auto !important; left: auto !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        pointer-events: none;
    }
    .form-panel.active {
        opacity: 1;
        visibility: visible;
        z-index: 2;
        pointer-events: auto;
    }
    .form-panel:not(.active) {
        position: absolute !important;
        top: 0 !important; left: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
    }


    .form-container.right-panel-active .sign-up { width: 100% !important; transform: none !important; }
    .form-container.right-panel-active .log-in  { transform: none !important; }


    .sign-form {
        justify-content: flex-start;
        padding: 32px 22px 30px;
        min-height: auto;
    }
    /*.sign-form > a > img { width: 96px; margin-bottom: 14px; }*/
    .sign-form h1        { font-size: 24px; margin-bottom: 14px; }


    .frm-inpt   { padding: 12px 14px; font-size: 16px; /* stops iOS zoom */ }
    .sign-btn, .otp-btn { padding: 14px 18px; }


    .log-back { flex-direction: column-reverse; gap: 8px; }
    .log-back .sign-btn { min-width: unset; }


    #show-forget { align-self: flex-start; }
    .btn-google  { padding: 13px 16px; }
    .form-alert  { font-size: 12px; padding: 10px 12px; }


    .social-fixed-icons { right: 14px; bottom: 16px; }
    .social-fixed-icons .wa img { width: 40px; height: 40px; }
}


/* Very small phones */
@media (max-width: 380px) {
    .login-register { padding: 10px 8px; }
    .sign-form { padding: 22px 16px 26px; }
    /*.sign-form > a > img { width: 80px; }*/
    .sign-form h1 { font-size: 20px; }
    .sign-form label, .text-start.w-100 label { font-size: 11px; }
}


/* Short landscape screens */
@media (max-height: 500px) and (orientation: landscape) {
    .login-register { align-items: flex-start; padding-top: 12px; }
    .sign-form { padding-top: 16px; padding-bottom: 16px; }
    /*.sign-form > a > img { width: 60px; margin-bottom: 8px; }*/
    .sign-form h1 { font-size: 20px; margin-bottom: 8px; }
}
@media (min-width:380px) (max-width: 990px){
.log_img{
width:60px !important;
}
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}