﻿/* =========================================================
   TECH FAMILY LOGIN PAGE
   Responsive RTL viewport-fit design
========================================================= */

:root {
    --tf-bg: #05040d;
    --tf-panel: #0b0820;
    --tf-panel-2: #171037;
    --tf-purple: #7c3aed;
    --tf-purple-light: #a855f7;
    --tf-cyan: #22d3ee;
    --tf-teal: #00ffd5;
    --tf-pink: #ec4899;
    --tf-text: #f8fafc;
    --tf-muted: #a9b1c7;
    --tf-dark-text: #111827;
    --tf-border: rgba(255, 255, 255, 0.11);
    --tf-input-border: #d9deea;
    --tf-danger: #dc2626;
    --tf-success: #22c55e;
    --tf-shell-radius: 26px;
    --tf-card-radius: 20px;
    --tf-control-radius: 12px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

html {
    overflow: hidden;
}

body {
    overflow: hidden;
    color: var(--tf-dark-text);
    background: var(--tf-bg);
    font-family: "Cairo", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
}

button, input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.tf-auth-page {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: grid;
    place-items: center;
    padding: clamp(9px, 1.3vw, 22px);
    overflow: hidden;
    background: radial-gradient(circle at 13% 13%, rgba(124, 58, 237, .27), transparent 29%), radial-gradient(circle at 86% 17%, rgba(34, 211, 238, .17), transparent 26%), radial-gradient(circle at 70% 95%, rgba(236, 72, 153, .13), transparent 28%), linear-gradient(135deg, #03020a 0%, #0a0618 46%, #05040d 100%);
}

.tf-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    opacity: .17;
    background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.tf-orb {
    position: absolute;
    z-index: -3;
    border-radius: 50%;
    filter: blur(18px);
    pointer-events: none;
    animation: tfFloat 9s ease-in-out infinite;
}

.tf-orb-one {
    width: 280px;
    height: 280px;
    top: -120px;
    right: 7%;
    background: rgba(124,58,237,.24);
}

.tf-orb-two {
    width: 240px;
    height: 240px;
    bottom: -105px;
    left: 5%;
    background: rgba(34,211,238,.18);
    animation-delay: -3s;
}

.tf-orb-three {
    width: 180px;
    height: 180px;
    top: 46%;
    left: 44%;
    background: rgba(236,72,153,.10);
    animation-delay: -6s;
}

@keyframes tfFloat {
    50% {
        transform: translate3d(0, -16px, 0) scale(1.05);
    }
}

.tf-auth-shell {
    position: relative;
    z-index: 1;
    width: min(1260px, 100%);
    height: min(770px, calc(100dvh - 18px));
    max-height: calc(100dvh - 18px);
    display: grid;
    /* LEFT = Presentation | RIGHT = Login */
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
    direction: ltr;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--tf-shell-radius);
    background: rgba(7, 5, 18, .88);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .52), 0 0 0 1px rgba(255, 255, 255, .025) inset;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}
/* =========================================================
   MAIN PANELS POSITION
   Presentation Left / Login Right
========================================================= */

.tf-presentation-panel {
    direction: rtl;
    grid-column: 1;
    grid-row: 1;
}

.tf-login-panel {
    direction: rtl;
    grid-column: 2;
    grid-row: 1;
}

/* Presentation */
.tf-presentation-panel {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    padding: clamp(24px, 3.5vw, 52px);
    overflow: hidden;
    color: var(--tf-text);
    background: radial-gradient(circle at 90% 10%, rgba(34,211,238,.18), transparent 29%), radial-gradient(circle at 10% 90%, rgba(124,58,237,.26), transparent 32%), linear-gradient(145deg, rgba(9,6,28,.98), rgba(23,16,55,.96) 53%, rgba(8,31,44,.95));
}

    .tf-presentation-panel::before,
    .tf-presentation-panel::after {
        content: "";
        position: absolute;
        border: 1px solid rgba(255,255,255,.07);
        border-radius: 50%;
    }

    .tf-presentation-panel::before {
        width: 390px;
        height: 390px;
        top: -260px;
        right: -170px;
    }

    .tf-presentation-panel::after {
        width: 460px;
        height: 460px;
        bottom: -330px;
        left: -230px;
    }

.tf-presentation-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 680px;
    margin: auto 0;
}

.tf-brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: clamp(17px, 2.8vh, 29px);
}

.tf-brand-logo {
    width: clamp(60px, 5vw, 76px);
    height: clamp(60px, 5vw, 76px);
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 5px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 19px;
    background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.04));
    box-shadow: 0 14px 30px rgba(0,0,0,.30), 0 0 24px rgba(34,211,238,.08);
}

    .tf-brand-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 14px;
    }

.tf-brand-text {
    min-width: 0;
}

.tf-brand-name {
    color: #fff;
    font-size: clamp(19px, 1.8vw, 26px);
    font-weight: 900;
    line-height: 1.1;
}

.tf-brand-subtitle {
    margin-top: 5px;
    color: #7eeafa;
    font-size: clamp(8px, .72vw, 10px);
    font-weight: 800;
    letter-spacing: 1.2px;
    direction: ltr;
    text-align: right;
}

.tf-presentation-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: clamp(10px, 1.7vh, 16px);
    padding: 7px 12px;
    color: #c7f8ff;
    border: 1px solid rgba(34,211,238,.26);
    border-radius: 999px;
    background: rgba(34,211,238,.08);
    font-size: clamp(9px, .78vw, 11px);
    font-weight: 800;
}

/* =========================================================
   FOUNDER QUOTE
========================================================= */

.tf-founder-quote {
    position: relative;
    width: 100%;
    max-width: 630px;
    margin: 0;
    padding: 5px 0 0;
    direction: rtl;
    text-align: justify;
    text-align-last: right;
    color: #ffffff;
    border: 0;
}

    .tf-founder-quote::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 48px;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient( 90deg, var(--tf-cyan), var(--tf-purple-light) );
        box-shadow: 0 0 14px rgba(34, 211, 238, .32);
    }

.tf-founder-quote-icon {
    display: block;
    margin-bottom: 8px;
    color: rgba(126, 234, 250, .72);
    font-size: clamp( 13px, 1.15vw, 17px );
}

.tf-founder-quote p {
    margin: 0;
    color: #f2f4fb;
    font-size: clamp( 12px, .98vw, 14px );
    font-weight: 650;
    line-height: 2.05;
    letter-spacing: 0;
    text-align: justify;
    text-align-last: right;
    text-justify: inter-word;
    word-spacing: 1px;
}

.tf-founder-signature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 11px;
    direction: rtl;
}

.tf-founder-line {
    width: 25px;
    height: 1px;
    flex: 0 0 auto;
    background: linear-gradient( 90deg, transparent, rgba(126, 234, 250, .72) );
}

.tf-founder-name {
    color: #7eeafa;
    font-size: clamp( 8px, .72vw, 10px );
    font-weight: 850;
    letter-spacing: .2px;
}

.tf-presentation-title {
    max-width: 590px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(25px, 2.45vw, 38px);
    font-weight: 900;
    line-height: 1.28;
    letter-spacing: -0.25px;
    text-align: right;
    text-wrap: balance;
}

    .tf-presentation-title span {
        display: block;
        margin-top: 3px;
        color: transparent;
        background: linear-gradient( 90deg, #00ffd5 0%, #5ee7f7 42%, #b8b5ff 72%, #d8b4fe 100% );
        -webkit-background-clip: text;
        background-clip: text;
        font-size: .92em;
        font-weight: 900;
        line-height: 1.25;
    }

.tf-presentation-description {
    max-width: 630px;
    margin: clamp(12px, 2vh, 19px) 0 0;
    color: #c2c7d9;
    font-size: clamp(11px, 1vw, 14px);
    line-height: 1.9;
}

.tf-feature-list {
    display: grid;
    gap: clamp(7px, 1.05vh, 10px);
    margin-top: clamp(16px, 2.5vh, 25px);
}

.tf-feature-card {
    display: grid;
    grid-template-columns: clamp(40px, 3.5vw, 48px) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: linear-gradient(110deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
    backdrop-filter: blur(8px);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

    .tf-feature-card:hover {
        transform: translateX(-4px);
        border-color: rgba(34,211,238,.22);
        background: rgba(255,255,255,.07);
    }

.tf-feature-icon {
    width: clamp(40px, 3.5vw, 48px);
    height: clamp(40px, 3.5vw, 48px);
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    font-size: clamp(15px, 1.35vw, 19px);
    box-shadow: 0 10px 22px rgba(0,0,0,.25);
}

.tf-feature-cyan {
    background: linear-gradient(135deg, #0891b2, #22d3ee);
}

.tf-feature-purple {
    background: linear-gradient(135deg, #6d28d9, #a855f7);
}

.tf-feature-pink {
    background: linear-gradient(135deg, #be185d, #ec4899);
}

.tf-feature-card strong {
    display: block;
    color: #fff;
    font-size: clamp(10px, .9vw, 12.5px);
    font-weight: 900;
}

.tf-feature-card span {
    display: block;
    margin-top: 2px;
    color: #aeb6cb;
    font-size: clamp(8px, .73vw, 10px);
    line-height: 1.55;
}

/* Icon buttons + CSS tooltip */
.tf-social-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: clamp(17px, 2.4vh, 24px);
}

.tf-icon-button,
.tf-password-toggle,
.tf-captcha-refresh {
    position: relative;
}

.tf-icon-button {
    width: clamp(38px, 3.25vw, 44px);
    height: clamp(38px, 3.25vw, 44px);
    display: grid;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 13px;
    background: rgba(255,255,255,.065);
    box-shadow: 0 9px 19px rgba(0,0,0,.22);
    font-size: clamp(15px, 1.3vw, 18px);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

    .tf-icon-button:hover {
        transform: translateY(-4px) scale(1.04);
        color: #fff;
        border-color: rgba(255,255,255,.28);
    }

.tf-about:hover {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    box-shadow: 0 12px 24px rgba(124,58,237,.32);
}

.tf-contact:hover {
    background: linear-gradient(135deg, #0891b2, #22d3ee);
    box-shadow: 0 12px 24px rgba(34,211,238,.26);
}

.tf-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e, #25d366);
    box-shadow: 0 12px 24px rgba(37,211,102,.25);
}

.tf-youtube:hover {
    background: linear-gradient(135deg, #c00, #ff3d3d);
    box-shadow: 0 12px 24px rgba(255,0,0,.23);
}

.tf-facebook:hover {
    background: linear-gradient(135deg, #1558b0, #1877f2);
    box-shadow: 0 12px 24px rgba(24,119,242,.25);
}

.tf-email:hover {
    background: linear-gradient(135deg, #be185d, #ec4899);
    box-shadow: 0 12px 24px rgba(236,72,153,.24);
}

[data-tooltip]::before,
[data-tooltip]::after {
    position: absolute;
    left: 50%;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    bottom: calc(100% + 10px);
    transform: translate(-50%, 6px);
    width: max-content;
    max-width: 190px;
    padding: 6px 9px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: #111827;
    box-shadow: 0 8px 20px rgba(0,0,0,.28);
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

[data-tooltip]::after {
    content: "";
    bottom: calc(100% + 4px);
    transform: translate(-50%, 6px);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #111827 transparent transparent;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::before,
[data-tooltip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.tf-presentation-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: clamp(15px, 2.2vh, 22px);
    padding-top: 12px;
    color: #929db6;
    border-top: 1px solid rgba(255,255,255,.10);
    font-size: clamp(8px, .7vw, 10px);
    font-weight: 700;
}

.tf-security-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.tf-security-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tf-success);
    box-shadow: 0 0 12px rgba(34,197,94,.9);
    animation: tfPulse 1.8s ease-in-out infinite;
}

@keyframes tfPulse {
    50% {
        opacity: .55;
        transform: scale(.8);
    }
}

/* Login panel */
.tf-login-panel {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(18px, 2.7vw, 38px);
    overflow: hidden;
    background: radial-gradient(circle at 100% 0, rgba(168,85,247,.10), transparent 28%), linear-gradient(180deg, #fbfaff 0%, #f0eef8 100%);
}

    .tf-login-panel::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--tf-purple), var(--tf-cyan), var(--tf-pink));
    }

.tf-mobile-brand {
    display: none;
}

.tf-login-card {
    width: 100%;
    max-width: 445px;
    max-height: 100%;
    margin: auto;
    padding: clamp(18px, 2vw, 28px);
    border: 1px solid rgba(203,213,225,.90);
    border-radius: var(--tf-card-radius);
    background: rgba(255,255,255,.975);
    box-shadow: 0 18px 46px rgba(35,24,72,.14), 0 1px 0 #fff inset;
}

.tf-login-header {
    display: grid;
    grid-template-columns: clamp(46px, 4vw, 56px) minmax(0,1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: clamp(13px, 2vh, 20px);
}

.tf-login-icon {
    width: clamp(46px,4vw,56px);
    height: clamp(46px,4vw,56px);
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--tf-purple), #5b21b6 55%, #0891b2);
    box-shadow: 0 12px 24px rgba(124,58,237,.25);
    font-size: clamp(18px,1.7vw,23px);
}

.tf-login-eyebrow {
    margin-bottom: 2px;
    color: var(--tf-purple);
    font-size: clamp(8px,.7vw,10px);
    font-weight: 950;
    letter-spacing: .6px;
}

.tf-login-header h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(20px,1.75vw,25px);
    font-weight: 950;
    line-height: 1.2;
}

.tf-login-header p {
    margin: 4px 0 0;
    color: #687086;
    font-size: clamp(9px,.78vw,11px);
    line-height: 1.5;
}

.tf-validation-summary {
    display: none;
    margin-bottom: 9px;
    padding: 8px 10px;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 9px;
    background: #fef2f2;
    font-size: 10px;
    font-weight: 700;
}

    .tf-validation-summary.validation-summary-errors {
        display: block;
    }

    .tf-validation-summary ul {
        margin: 0;
        padding-right: 16px;
    }

.tf-field-validation {
    display: block;
    min-height: 12px;
    margin-top: 2px;
    color: var(--tf-danger);
    font-size: 9px;
    font-weight: 750;
    line-height: 1.2;
}

.tf-login-form {
    width: 100%;
}

.tf-field-group {
    min-width: 0;
    margin-bottom: clamp(6px,1vh,10px);
}

.tf-field-label {
    display: block;
    margin-bottom: 4px;
    color: #374151;
    font-size: clamp(9px,.76vw,11px);
    font-weight: 900;
}

.tf-input-shell {
    position: relative;
    display: grid;
    grid-template-columns: clamp(39px,3vw,44px) minmax(0,1fr);
    align-items: center;
    height: clamp(41px,5.3vh,48px);
    min-height: 41px;
    overflow: hidden;
    border: 1px solid var(--tf-input-border);
    border-radius: var(--tf-control-radius);
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

    .tf-input-shell:focus-within {
        border-color: var(--tf-purple-light);
        box-shadow: 0 0 0 3px rgba(168,85,247,.10);
        transform: translateY(-1px);
    }

.tf-input-icon {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #7c3aed;
    border-left: 1px solid #e6e8f0;
    background: linear-gradient(180deg,#fbfaff,#f5f1ff);
    font-size: clamp(13px,1.15vw,16px);
}

.tf-form-input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 12px;
    color: #111827;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: clamp(10px,.88vw,12px);
    font-weight: 700;
    text-align: right;
}

    .tf-form-input::placeholder {
        color: #a3a8b7;
        font-weight: 500;
    }

.tf-password-shell {
    grid-template-columns: clamp(39px,3vw,44px) minmax(0,1fr) 39px;
}

.tf-password-toggle {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    margin-left: 3px;
    color: #6b7280;
    border: 0;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
}

    .tf-password-toggle:hover {
        color: var(--tf-purple);
        background: #f4efff;
    }

.tf-security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.tf-captcha-box {
    margin-top: 2px;
    margin-bottom: clamp(10px,1.5vh,14px);
    padding: clamp(8px,1vw,11px);
    border: 1px solid #dddbea;
    border-radius: 13px;
    background: linear-gradient(135deg,#faf9ff,#f1eff9);
}

.tf-captcha-information {
    margin-bottom: 7px;
}

.tf-captcha-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1f2937;
    font-size: clamp(9px,.75vw,10.5px);
    font-weight: 900;
}

    .tf-captcha-title i {
        color: var(--tf-purple);
    }

.tf-captcha-description {
    margin-top: 2px;
    color: #777e91;
    font-size: clamp(8px,.65vw,9px);
}

.tf-captcha-actions {
    display: grid;
    grid-template-columns: minmax(0,1fr) 48px;
    align-items: stretch;
    gap: 8px;
}

.tf-captcha-image-wrap {
    height: clamp(56px,7vh,66px);
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    overflow: hidden;
    border: 1px solid #d2d5df;
    border-radius: 10px;
    background: #fff;
}

.tf-captcha-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    transition: opacity .2s ease;
}

    .tf-captcha-image.is-loading {
        opacity: .28;
    }

.tf-captcha-refresh {
    min-height: 56px;
    display: grid;
    place-items: center;
    color: #fff;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg,#6d28d9,#0891b2);
    box-shadow: 0 8px 18px rgba(109,40,217,.20);
    cursor: pointer;
    font-size: 16px;
}

    .tf-captcha-refresh:hover {
        filter: brightness(1.08);
    }

    .tf-captcha-refresh.is-refreshing i {
        animation: tfRotate .55s linear infinite;
    }

@keyframes tfRotate {
    to {
        transform: rotate(360deg);
    }
}

.tf-login-button {
    position: relative;
    width: 100%;
    height: clamp(43px,5.8vh,50px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(100deg,#6d28d9,#8b5cf6 46%,#0891b2 100%);
    box-shadow: 0 12px 25px rgba(109,40,217,.25);
    font-size: clamp(10px,.9vw,12px);
    font-weight: 950;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

    .tf-login-button::before {
        content: "";
        position: absolute;
        inset: 0;
        transform: translateX(110%);
        background: linear-gradient(100deg,transparent,rgba(255,255,255,.22),transparent);
        transition: transform .6s ease;
    }

    .tf-login-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 29px rgba(109,40,217,.32);
    }

        .tf-login-button:hover::before {
            transform: translateX(-110%);
        }

    .tf-login-button:disabled {
        cursor: wait;
        opacity: .78;
        transform: none;
    }

.tf-login-button-content, .tf-login-button-loading {
    position: relative;
    z-index: 2;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tf-login-button-content {
    display: inline-flex;
}

.tf-login-button-loading {
    display: none;
}

.tf-button-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tfRotate .7s linear infinite;
}

.tf-login-security-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    margin-top: clamp(7px,1vh,10px);
    color: #747b8d;
    font-size: clamp(7.5px,.63vw,9px);
    line-height: 1.4;
    text-align: center;
}

    .tf-login-security-note i {
        margin-top: 2px;
        color: var(--tf-purple);
    }

.tf-login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: clamp(7px,1.2vh,12px);
    color: #71778a;
    font-size: clamp(7.5px,.64vw,9px);
    font-weight: 750;
}

.tf-footer-divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #9ca3af;
}

/* Large screens */
@media (min-width: 1600px) {
    .tf-auth-shell {
        width: min(1340px,calc(100% - 40px));
        height: min(800px,calc(100dvh - 32px));
    }

    .tf-login-card {
        max-width: 455px;
    }
}

@media (min-width: 2560px) {

    .tf-auth-shell {
        width: 1440px;
        height: min( 830px, calc(100dvh - 56px) );
    }

    .tf-presentation-title {
        max-width: 590px;
        font-size: 38px;
        line-height: 1.28;
    }

    .tf-login-card {
        max-width: 470px;
    }
}

/* Laptop */
/* =========================================================
   LAPTOP - 1366 / 1400
========================================================= */

@media (max-width: 1400px) {

    .tf-founder-quote {
        max-width: 540px;
    }

        .tf-founder-quote p {
            font-size: clamp( 10.5px, .92vw, 12.5px );
            line-height: 1.95;
        }



    .tf-auth-shell {
        width: min(1140px, 100%);
        grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    }

    .tf-presentation-panel {
        padding-left: 35px;
        padding-right: 35px;
    }

    /* تصغير عنوان العرض على اللابتوب */
    .tf-presentation-title {
        max-width: 540px;
        font-size: clamp( 24px, 2.35vw, 34px );
        line-height: 1.28;
    }

        .tf-presentation-title span {
            font-size: .92em;
            line-height: 1.24;
        }

    .tf-login-panel {
        padding-left: 26px;
        padding-right: 26px;
    }

    .tf-login-card {
        max-width: 410px;
    }
}

/* Short desktop */
@media (min-width: 901px) and (max-height: 760px) {

    .tf-founder-quote {
        max-width: 520px;
        padding-top: 4px;
    }

    .tf-founder-quote-icon {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .tf-founder-quote p {
        font-size: 10px;
        line-height: 1.75;
    }

    .tf-founder-signature {
        margin-top: 6px;
    }


    .tf-auth-page {
        padding: 7px;
    }

    .tf-auth-shell {
        height: calc(100dvh - 14px);
        max-height: calc(100dvh - 14px);
        border-radius: 20px;
    }

    .tf-presentation-panel {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .tf-brand-row {
        margin-bottom: 13px;
    }

    .tf-presentation-title {
        max-width: 520px;
        font-size: clamp( 22px, 2.2vw, 31px );
        line-height: 1.22;
    }

    .tf-presentation-description {
        margin-top: 8px;
        font-size: 10px;
        line-height: 1.6;
    }

    .tf-feature-list {
        margin-top: 12px;
        gap: 6px;
    }

    .tf-feature-card {
        min-height: 48px;
        padding: 6px 9px;
    }

    .tf-social-nav {
        margin-top: 12px;
    }

    .tf-presentation-footer {
        margin-top: 10px;
        padding-top: 8px;
    }

    .tf-login-card {
        padding: 16px 19px;
    }

    .tf-login-header {
        margin-bottom: 10px;
    }

    .tf-field-group {
        margin-bottom: 5px;
    }

    .tf-input-shell {
        height: 38px;
        min-height: 38px;
    }

    .tf-field-validation {
        min-height: 9px;
    }

    .tf-captcha-box {
        margin-bottom: 8px;
        padding: 7px;
    }

    .tf-captcha-information {
        margin-bottom: 4px;
    }

    .tf-captcha-image-wrap, .tf-captcha-refresh {
        height: 49px;
        min-height: 49px;
    }

    .tf-login-button {
        height: 40px;
    }
}

/* Tablet and mobile */
@media (max-width: 900px) {
    html,
    body {
        width: 100%;
        height: 100%;
        min-height: 100%;
        overflow: hidden !important;
        overscroll-behavior: none;
    }

    body {
        position: fixed;
        inset: 0;
    }

    .tf-auth-page {
        width: 100%;
        height: 100dvh;
        min-height: 100dvh;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        padding: 10px;
    }

    .tf-auth-shell {
        width: min(620px, 100%);
        max-width: 100%;
        height: auto;
        min-height: calc(100dvh - 20px);
        max-height: none;
        grid-template-columns: minmax(0, 1fr);
        overflow: hidden;
    }

    .tf-login-panel {
        grid-column: 1;
        grid-row: 1;
    }

    .tf-presentation-panel {
        grid-column: 1;
        grid-row: 2;
        display: none;
    }

    .tf-login-panel {
        min-height: calc(100dvh - 20px);
        padding: clamp(14px,4vw,28px);
        overflow: visible;
    }

    .tf-mobile-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 11px;
        margin: 0 auto 12px;
        color: #171037;
    }

        .tf-mobile-brand img {
            width: 52px;
            height: 52px;
            object-fit: contain;
            border-radius: 13px;
            box-shadow: 0 8px 18px rgba(31,20,64,.14);
        }

        .tf-mobile-brand strong {
            display: block;
            font-size: 17px;
            font-weight: 950;
        }

        .tf-mobile-brand span {
            display: block;
            margin-top: 2px;
            color: #777e91;
            font-size: 9px;
            direction: ltr;
        }

    .tf-login-card {
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .tf-auth-page {
        padding: 6px;
    }

    .tf-auth-shell {
        min-height: calc(100dvh - 12px);
        border-radius: 17px;
    }

    .tf-login-panel {
        min-height: calc(100dvh - 12px);
        padding: 10px;
    }

    .tf-mobile-brand {
        margin-bottom: 7px;
    }

        .tf-mobile-brand img {
            width: 42px;
            height: 42px;
        }

    .tf-login-card {
        max-width: 100%;
        padding: 14px;
        border-radius: 15px;
    }

    .tf-login-header {
        grid-template-columns: 43px minmax(0,1fr);
        gap: 9px;
        margin-bottom: 10px;
    }

    .tf-login-icon {
        width: 43px;
        height: 43px;
        border-radius: 12px;
        font-size: 18px;
    }

    .tf-login-header h2 {
        font-size: 18px;
    }

    .tf-login-header p {
        font-size: 9px;
    }

    .tf-security-grid {
        gap: 6px;
    }

    .tf-input-shell {
        grid-template-columns: 36px minmax(0,1fr);
        height: 40px;
        min-height: 40px;
    }

    .tf-password-shell {
        grid-template-columns: 36px minmax(0,1fr) 36px;
    }

    .tf-form-input {
        padding: 0 8px;
        font-size: 10px;
    }

    .tf-captcha-box {
        padding: 7px;
    }

    .tf-captcha-description {
        display: none;
    }

    .tf-captcha-image-wrap, .tf-captcha-refresh {
        height: 50px;
        min-height: 50px;
    }

    .tf-login-footer {
        margin-top: 5px;
        font-size: 7px;
    }
}

@media (max-width: 410px) {
    .tf-mobile-brand span, .tf-login-header p {
        display: none;
    }

    .tf-login-eyebrow {
        font-size: 7px;
    }

    .tf-login-header h2 {
        font-size: 16px;
    }

    .tf-security-grid {
        gap: 5px;
    }

    .tf-form-input::placeholder {
        font-size: 8.5px;
    }

    .tf-captcha-title {
        font-size: 8px;
    }
}

@media (max-width: 620px) and (max-height: 700px) {
    .tf-mobile-brand {
        display: none;
    }

    .tf-login-card {
        padding: 10px 12px;
    }

    .tf-login-header {
        margin-bottom: 7px;
    }

        .tf-login-header p {
            display: none;
        }

    .tf-field-group {
        margin-bottom: 3px;
    }

    .tf-field-validation {
        min-height: 7px;
        font-size: 7px;
    }

    .tf-input-shell {
        height: 36px;
        min-height: 36px;
    }

    .tf-captcha-information {
        display: none;
    }

    .tf-captcha-image-wrap, .tf-captcha-refresh {
        height: 45px;
        min-height: 45px;
    }

    .tf-login-button {
        height: 38px;
    }

    .tf-login-security-note, .tf-login-footer {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.tf-presentation-content {
    direction: rtl;
    text-align: right;
}

.tf-brand-row {
    direction: rtl;
}

.tf-brand-text {
    text-align: right;
}

.tf-brand-subtitle {
    direction: ltr;
    text-align: right;
}

.tf-presentation-badge {
    direction: rtl;
}

.tf-presentation-description {
    direction: rtl;
    text-align: right;
}

.tf-feature-card {
    direction: rtl;
    text-align: right;
}

    .tf-feature-card strong,
    .tf-feature-card span {
        text-align: right;
    }

.tf-social-nav {
    direction: rtl;
    justify-content: flex-start;
}

.tf-presentation-footer {
    direction: rtl;
}
