/* ============================================================
   ZENT — MAIN AUTH STYLESHEET
   Sapphire + Gold · Split hero + Glass card
   Mobile-first · Independent identity
   ============================================================ */

/* ------------------------------------------------------------
   RESET
   ------------------------------------------------------------ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ------------------------------------------------------------
   TOKENS
   ------------------------------------------------------------ */
:root {
    /* Surfaces */
    --zent-bg:        #EEF2FB;
    --zent-surface:   #FFFFFF;
    --zent-surface-2: #F4F7FF;
    --zent-border:    #E1E7F5;
    --zent-border-2:  #C7D0E6;

    /* Text */
    --zent-text:      #0B1736;
    --zent-text-2:    #3D4A6B;
    --zent-muted:     #6B7794;
    --zent-dim:       #9AA4BF;

    /* Brand — sapphire + gold */
    --zent-navy:      #0B1736;
    --zent-navy-2:    #16244A;
    --zent-gold:      #F5B301;
    --zent-gold-2:    #D99700;
    --zent-gold-soft: rgba(245, 179, 1, 0.12);
    --zent-gold-ring: rgba(245, 179, 1, 0.22);

    /* Semantic */
    --zent-green:      #059669;
    --zent-green-soft: rgba(5, 150, 105, 0.10);
    --zent-red:        #DC2626;
    --zent-red-soft:   rgba(220, 38, 38, 0.08);

    /* Radii */
    --zent-r-sm:   10px;
    --zent-r:      16px;
    --zent-r-lg:   24px;
    --zent-r-pill: 999px;

    /* Shadows */
    --zent-shadow:    0 1px 2px rgba(11, 23, 54, 0.05),
                      0 6px 18px rgba(11, 23, 54, 0.06);
    --zent-shadow-lg: 0 12px 34px rgba(11, 23, 54, 0.14),
                      0 24px 60px rgba(11, 23, 54, 0.10);
    --zent-glow-gold: 0 6px 22px rgba(245, 179, 1, 0.35);

    --zent-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ------------------------------------------------------------
   BASE
   ------------------------------------------------------------ */
html, body {
    background: var(--zent-bg);
    color: var(--zent-text);
    font-family: var(--zent-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(11, 23, 54, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(245, 179, 1, 0.07) 0%, transparent 45%);
    background-attachment: fixed;
}

/* ------------------------------------------------------------
   WRAPPER
   ------------------------------------------------------------ */
.zent-auth {
    width: 100%;
    max-width: 420px;
}

/* ------------------------------------------------------------
   HERO PANEL
   ------------------------------------------------------------ */
.zent-hero {
    text-align: center;
    margin-bottom: 22px;
}

.zent-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.zent-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--zent-navy), var(--zent-navy-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--zent-gold);
    box-shadow: 0 6px 18px rgba(11, 23, 54, 0.28);
    flex-shrink: 0;
    transform: rotate(-6deg);
    transition: transform 0.3s ease;
}

.zent-brand:hover .zent-brand-mark {
    transform: rotate(0deg);
}

.zent-brand-name {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--zent-text);
    text-transform: uppercase;
}

.zent-tagline {
    font-size: 13px;
    font-weight: 500;
    color: var(--zent-muted);
    margin-bottom: 16px;
    letter-spacing: 0.1px;
}

.zent-hero-points {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.zent-hero-points li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--zent-text-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zent-hero-points li i {
    color: var(--zent-gold);
    font-size: 11px;
}

/* ------------------------------------------------------------
   CARD
   ------------------------------------------------------------ */
.zent-card {
    background: var(--zent-surface);
    border: 1px solid var(--zent-border);
    border-radius: var(--zent-r-lg);
    padding: 24px 20px;
    box-shadow: var(--zent-shadow-lg);
    position: relative;
    overflow: hidden;
}

.zent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--zent-navy), var(--zent-gold));
}

/* ------------------------------------------------------------
   SWITCH — segmented control, squared pills
   ------------------------------------------------------------ */
.zent-switch {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--zent-surface-2);
    border: 1px solid var(--zent-border);
    border-radius: var(--zent-r-sm);
    padding: 4px;
    margin-bottom: 24px;
}

.zent-switch-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, var(--zent-navy), var(--zent-navy-2));
    border-radius: 8px;
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 16px rgba(11, 23, 54, 0.28);
    z-index: 0;
}

.zent-switch[data-active="register"] .zent-switch-thumb {
    transform: translateX(100%);
}

.zent-switch-btn {
    position: relative;
    z-index: 1;
    padding: 11px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-family: var(--zent-font);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    color: var(--zent-muted);
    transition: color 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.zent-switch-btn i {
    font-size: 12px;
}

.zent-switch-btn.active {
    color: var(--zent-gold);
}

.zent-switch-btn:not(.active):hover {
    color: var(--zent-text);
}

/* ------------------------------------------------------------
   FORM
   ------------------------------------------------------------ */
.zent-form {
    display: none;
}

.zent-form.active {
    display: block;
    animation: zent-rise 0.3s ease;
}

@keyframes zent-rise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Field */
.zent-field {
    margin-bottom: 14px;
}

.zent-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--zent-text-2);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.zent-label i {
    color: var(--zent-gold);
    font-size: 11px;
    width: 14px;
    text-align: center;
}

.zent-optional {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    color: var(--zent-dim);
    text-transform: none;
    letter-spacing: 0;
}

/* Input */
.zent-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--zent-surface-2);
    border: 1.5px solid var(--zent-border);
    border-radius: var(--zent-r-sm);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.zent-input-wrap:focus-within {
    border-color: var(--zent-gold);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px var(--zent-gold-ring);
}

.zent-input-icon {
    padding: 0 4px 0 14px;
    color: var(--zent-dim);
    font-size: 14px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.zent-input-wrap:focus-within .zent-input-icon {
    color: var(--zent-gold-2);
}

.zent-input {
    flex: 1;
    min-width: 0;
    padding: 14px 14px 14px 10px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--zent-text);
    font-family: var(--zent-font);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.zent-input::placeholder {
    color: var(--zent-dim);
    font-weight: 500;
    letter-spacing: 0;
}

/* Eye */
.zent-eye {
    padding: 0 14px;
    background: transparent;
    border: none;
    color: var(--zent-dim);
    cursor: pointer;
    font-size: 15px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex-shrink: 0;
}

.zent-eye:hover {
    color: var(--zent-text-2);
}

/* ------------------------------------------------------------
   SUBMIT — navy → gold accent
   ------------------------------------------------------------ */
.zent-submit {
    width: 100%;
    padding: 15px;
    min-height: 54px;
    margin-top: 6px;
    border: none;
    border-radius: var(--zent-r-sm);
    background: linear-gradient(135deg, var(--zent-navy), var(--zent-navy-2));
    color: #FFFFFF;
    font-family: var(--zent-font);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    position: relative;
    overflow: hidden;
}

.zent-submit i {
    font-size: 14px;
    color: var(--zent-gold);
}

.zent-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(245, 179, 1, 0.18) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.zent-submit:hover:not(:disabled) {
    box-shadow: 0 8px 24px rgba(11, 23, 54, 0.32);
    transform: translateY(-1px);
}

.zent-submit:hover:not(:disabled)::after {
    opacity: 1;
}

.zent-submit:active:not(:disabled) {
    transform: scale(0.98);
}

.zent-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ------------------------------------------------------------
   FOOT
   ------------------------------------------------------------ */
.zent-foot {
    text-align: center;
    font-size: 13px;
    color: var(--zent-muted);
    margin-top: 16px;
    font-weight: 500;
}

.zent-foot a {
    color: var(--zent-navy);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    margin-left: 4px;
    border-bottom: 2px solid var(--zent-gold);
    padding-bottom: 1px;
    transition: color 0.2s;
}

.zent-foot a:hover {
    color: var(--zent-gold-2);
}

/* ------------------------------------------------------------
   OR DIVIDER
   ------------------------------------------------------------ */
.zent-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    color: var(--zent-dim);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zent-or::before,
.zent-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--zent-border);
}

/* ------------------------------------------------------------
   SOCIAL BUTTONS
   ------------------------------------------------------------ */
.zent-social {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    min-height: 52px;
    margin-top: 10px;
    background: var(--zent-surface-2);
    border: 1.5px solid var(--zent-border);
    border-radius: var(--zent-r-sm);
    color: var(--zent-text);
    font-family: var(--zent-font);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.zent-social:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(11, 23, 54, 0.10);
    background: #FFFFFF;
}

.zent-social:active {
    transform: scale(0.98);
}

.zent-social i:first-child {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    color: #ffffff;
}

.zent-social span {
    flex: 1;
    text-align: left;
}

.zent-social-chev {
    color: var(--zent-muted);
    font-size: 12px;
    transition: transform 0.2s ease;
}

.zent-social:hover .zent-social-chev {
    transform: translateX(3px);
    color: var(--zent-text);
}

/* WhatsApp */
.zent-social-wa {
    border-color: rgba(37, 211, 102, 0.35);
}
.zent-social-wa i:first-child {
    background: #25D366;
}
.zent-social-wa:hover {
    border-color: #25D366;
}

/* Telegram */
.zent-social-tg {
    border-color: rgba(34, 158, 217, 0.35);
}
.zent-social-tg i:first-child {
    background: #229ED9;
}
.zent-social-tg:hover {
    border-color: #229ED9;
}

/* ------------------------------------------------------------
   LEGAL
   ------------------------------------------------------------ */
.zent-legal {
    text-align: center;
    font-size: 11px;
    color: var(--zent-dim);
    font-weight: 500;
    margin-top: 18px;
    line-height: 1.5;
    padding: 0 8px;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (min-width: 600px) {
    .zent-auth {
        max-width: 460px;
    }

    .zent-card {
        padding: 30px 26px;
    }

    .zent-brand-name {
        font-size: 32px;
        letter-spacing: 5px;
    }

    .zent-brand-mark {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    .zent-tagline {
        font-size: 14px;
    }
}

/* ------------------------------------------------------------
   REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}