﻿/* ═══════════════════════════════════════════════════════
   Sadakatim Login Template CSS
   websitelogintemplate.css
   ═══════════════════════════════════════════════════════ */

:root {
    --brand: #2AADCF;
    --brand-dark: #1E8FAB;
    --brand-light: #5CC8E2;
    --brand-50: #E8F8FC;
    --blue: #3B82F6;
    --blue-50: #EFF6FF;
    --navy: #0f172a;
    --bg: #f0f4ff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-900: #0f172a;
    --green: #22c55e;
    --green-50: #f0fdf4;
    --amber: #f59e0b;
    --amber-50: #fffbeb;
    --white: #fff;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: 'Plus Jakarta Sans',-apple-system,sans-serif;
    min-height: 100vh;
    background: var(--bg);
    color: var(--navy);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ─── Canvas & Wash ─── */
canvas#bg {
    position: fixed;
    inset: 0;
    z-index: 0
}

.wash {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none
}

    .wash .w1 {
        position: absolute;
        width: 500px;
        height: 500px;
        border-radius: 50%;
        filter: blur(100px);
        top: -10%;
        right: 10%;
        background: radial-gradient(circle,rgba(42,173,207,.08),transparent 70%);
        animation: wf 20s ease-in-out infinite
    }

    .wash .w2 {
        position: absolute;
        width: 400px;
        height: 400px;
        border-radius: 50%;
        filter: blur(90px);
        bottom: 0;
        left: 5%;
        background: radial-gradient(circle,rgba(59,130,246,.06),transparent 70%);
        animation: wf 25s ease-in-out infinite reverse
    }

@keyframes wf {
    0%,100% {
        transform: translate(0,0) scale(1)
    }

    50% {
        transform: translate(20px,15px) scale(1.1)
    }
}

/* ─── Layout ─── */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 2rem 6rem;
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ═══ LEFT: System Info ═══ */
.info-side {
    flex: 1;
    animation: fadeUp .8s ease-out both
}

.logo-row {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem
}

    .logo-row img {
        height: 87px;
        object-fit: contain
    }

.info-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: .75rem;
    letter-spacing: -.5px
}

    .info-title .hl {
        color: var(--brand);
        font-style: italic
    }

.info-desc {
    font-size: .85rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 2rem
}

/* System flow */
.sys-flow {
    display: flex;
    flex-direction: column;
    gap: .6rem
}

.sf-step {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .9rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    transition: all .3s;
    cursor: default
}

    .sf-step:hover {
        border-color: rgba(42,173,207,.2);
        box-shadow: 0 3px 12px rgba(42,173,207,.05);
        transform: translateX(4px)
    }

.sf-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

    .sf-icon svg {
        width: 16px;
        height: 16px
    }

    .sf-icon.ic-teal {
        background: var(--brand-50);
        color: var(--brand)
    }

    .sf-icon.ic-blue {
        background: var(--blue-50);
        color: var(--blue)
    }

    .sf-icon.ic-green {
        background: var(--green-50);
        color: var(--green)
    }

    .sf-icon.ic-amber {
        background: var(--amber-50);
        color: var(--amber)
    }

.sf-text {
    flex: 1
}

    .sf-text .sft {
        font-size: .78rem;
        font-weight: 700;
        color: var(--navy)
    }

    .sf-text .sfs {
        font-size: .62rem;
        color: var(--gray-400)
    }

.sf-arrow {
    color: var(--gray-300);
    font-size: .7rem
}

/* Stats */
.info-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.75rem;
    animation: fadeUp .8s ease-out .2s both
}

.is-item {
    text-align: center
}

.is-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy)
}

    .is-val span {
        font-size: .75rem;
        font-weight: 500;
        color: var(--brand)
    }

.is-label {
    font-size: .55rem;
    color: var(--gray-400);
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-top: .1rem
}

/* ═══ RIGHT: Login Card ═══ */
.card-side {
    width: 400px;
    flex-shrink: 0;
    animation: fadeUp .8s ease-out .15s both
}

.login-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.02),0 8px 32px rgba(42,173,207,.05),0 20px 40px rgba(0,0,0,.02);
    border: 1px solid rgba(42,173,207,.06);
    position: relative;
    overflow: hidden;
}

    .login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg,var(--brand),var(--blue),var(--brand-light))
    }

/* ─── View System ─── */
.view {
    display: none;
    animation: fadeUp .35s ease-out both
}

    .view.active {
        display: block
    }

.card-header {
    margin-bottom: 1.5rem
}

    .card-header h2 {
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--navy);
        margin-bottom: .25rem
    }

    .card-header p {
        font-size: .8rem;
        color: var(--gray-400);
        line-height: 1.5
    }

/* ─── Alert ─── */
.hub-alert {
    padding: .6rem .85rem;
    border-radius: 10px;
    font-size: .75rem;
    font-weight: 500;
    margin-bottom: .85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    animation: fadeUp .3s ease-out both
}

.hub-alert-danger {
    background: rgba(239,68,68,.06);
    border: 1px solid rgba(239,68,68,.1);
    color: #b91c1c
}

.hub-alert-success {
    background: rgba(34,197,94,.06);
    border: 1px solid rgba(34,197,94,.1);
    color: #15803d
}

.hub-alert-warning {
    background: rgba(245,158,11,.06);
    border: 1px solid rgba(245,158,11,.1);
    color: #92400e
}

.hub-alert .close-alert {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: inherit;
    opacity: .5;
    padding: 0
}

    .hub-alert .close-alert:hover {
        opacity: 1
    }

/* ─── Form Fields ─── */
.field {
    margin-bottom: .85rem
}

.field-label {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: .35rem;
    letter-spacing: .3px
}

.field-wrap {
    position: relative;
    display: flex;
    align-items: center
}

    .field-wrap .fi {
        position: absolute;
        left: 13px;
        color: var(--gray-400);
        display: flex;
        align-items: center;
        transition: color .25s;
        z-index: 1
    }

        .field-wrap .fi svg {
            width: 16px;
            height: 16px
        }

    .field-wrap input {
        width: 100%;
        padding: .75rem .85rem .75rem 2.5rem;
        font-family: inherit;
        font-size: .85rem;
        color: var(--navy);
        background: var(--gray-50);
        border: 1.5px solid var(--gray-200);
        border-radius: 11px;
        outline: none;
        transition: all .25s;
    }

        .field-wrap input::placeholder {
            color: var(--gray-300)
        }

        .field-wrap input:focus {
            border-color: var(--brand);
            background: var(--white);
            box-shadow: 0 0 0 3px rgba(42,173,207,.08)
        }

    .field-wrap:focus-within .fi {
        color: var(--brand)
    }

.toggle-pw {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 3px;
    transition: color .2s;
    z-index: 1
}

    .toggle-pw:hover {
        color: var(--gray-500)
    }

    .toggle-pw svg {
        width: 16px;
        height: 16px
    }

/* ─── Options ─── */
.opts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem
}

.remember {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    color: var(--gray-500);
    cursor: pointer;
    user-select: none
}

    .remember input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        border: 1.5px solid var(--gray-300);
        border-radius: 4px;
        cursor: pointer;
        position: relative;
        transition: all .2s;
        flex-shrink: 0
    }

    .remember input:checked {
        background: var(--brand);
        border-color: var(--brand)
    }

        .remember input:checked::after {
            content: '';
            position: absolute;
            left: 4px;
            top: 1px;
            width: 4px;
            height: 8px;
            border: solid #fff;
            border-width: 0 1.5px 1.5px 0;
            transform: rotate(45deg)
        }

.forgot-link {
    font-size: .75rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    transition: color .2s;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    padding: 0
}

    .forgot-link:hover {
        color: var(--brand-dark)
    }

/* ─── Submit Button ─── */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 100%;
    margin-top: 1.25rem;
    padding: .8rem;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg,var(--brand-dark),var(--brand));
    border: none;
    border-radius: 11px;
    cursor: pointer;
    transition: all .3s;
    box-shadow: 0 3px 12px rgba(42,173,207,.18);
    position: relative;
    overflow: hidden;
}

    .submit-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent);
        transition: left .5s
    }

    .submit-btn:hover::before {
        left: 100%
    }

    .submit-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 5px 18px rgba(42,173,207,.25)
    }

    .submit-btn:active {
        transform: translateY(0)
    }

    .submit-btn:disabled {
        opacity: .7;
        cursor: not-allowed;
        transform: none !important
    }

    .submit-btn svg {
        width: 16px;
        height: 16px;
        transition: transform .3s
    }

    .submit-btn:hover svg {
        transform: translateX(2px)
    }

.btn-text {
    display: flex;
    align-items: center;
    gap: .4rem
}

.btn-spinner {
    display: none;
    align-items: center;
    gap: .5rem
}

    .btn-spinner.active {
        display: flex
    }

.btn-text.hidden {
    display: none
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

/* ─── Divider ─── */
.divider {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 1.4rem 0
}

    .divider::before, .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--gray-200)
    }

    .divider span {
        font-size: .58rem;
        color: var(--gray-400);
        letter-spacing: .5px;
        text-transform: uppercase
    }

/* ─── HUB Link ─── */
.hub-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .85rem;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: 11px;
    cursor: pointer;
    transition: all .25s;
    text-decoration: none
}

    .hub-link:hover {
        border-color: rgba(42,173,207,.2);
        background: var(--brand-50)
    }

.hub-link-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--brand-50);
    border: 1px solid rgba(42,173,207,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

    .hub-link-icon svg {
        width: 14px;
        height: 14px;
        color: var(--brand)
    }

.hl-t {
    font-size: .72rem;
    font-weight: 600;
    color: var(--navy)
}

.hl-s {
    font-size: .58rem;
    color: var(--gray-400)
}

/* ═══ FORGOT PASSWORD VIEWS ═══ */

/* Icon circle */
.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-50);
    border: 1.5px solid rgba(42,173,207,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--brand);
}

/* Steps indicator */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem
}

.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 700;
    color: var(--gray-400);
    background: var(--gray-100);
    border: 1.5px solid var(--gray-200);
    transition: all .3s;
}

    .step-dot.active {
        background: var(--brand);
        color: var(--white);
        border-color: var(--brand);
        box-shadow: 0 2px 8px rgba(42,173,207,.2)
    }

    .step-dot.done {
        background: var(--green);
        color: var(--white);
        border-color: var(--green);
        box-shadow: 0 2px 8px rgba(34,197,94,.2)
    }

.step-line {
    width: 36px;
    height: 2px;
    background: var(--gray-200);
    transition: background .3s
}

    .step-line.done {
        background: var(--green)
    }

/* Info box */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .65rem .85rem;
    background: var(--blue-50);
    border: 1px solid rgba(59,130,246,.1);
    border-radius: 10px;
    margin-bottom: 1rem;
}

    .info-box svg {
        flex-shrink: 0;
        color: var(--blue);
        margin-top: .1rem
    }

    .info-box p {
        font-size: .7rem;
        color: var(--gray-500);
        line-height: 1.5;
        margin: 0
    }

/* OTP Row */
.otp-row {
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin: 1.25rem 0
}

.otp-input {
    width: 42px;
    height: 48px;
    text-align: center;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    outline: none;
    transition: all .25s;
}

    .otp-input:focus {
        border-color: var(--brand);
        background: var(--white);
        box-shadow: 0 0 0 3px rgba(42,173,207,.08)
    }

    .otp-input::placeholder {
        color: var(--gray-300);
        font-size: 1.5rem
    }

/* Resend row */
.resend-row {
    text-align: center;
    margin-bottom: 1rem;
    font-size: .72rem;
    color: var(--gray-400)
}

.resend-btn {
    background: none;
    border: none;
    color: var(--brand);
    font-family: inherit;
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color .2s
}

    .resend-btn:hover {
        color: var(--brand-dark)
    }

    .resend-btn:disabled {
        color: var(--gray-400);
        cursor: not-allowed
    }

/* Password strength */
.strength-bar {
    display: flex;
    gap: 4px;
    margin-top: .5rem
}

.strength-seg {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--gray-200);
    transition: background .3s
}

.strength-text {
    font-size: .6rem;
    margin-top: .3rem;
    color: var(--gray-400);
    transition: color .3s
}

/* Back link */
.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    width: 100%;
    margin-top: 1rem;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 600;
    color: var(--gray-400);
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
    transition: color .2s;
}

    .back-link:hover {
        color: var(--brand)
    }

    .back-link svg {
        transition: transform .2s
    }

    .back-link:hover svg {
        transform: translateX(-2px)
    }

/* Success icon */
.success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg,rgba(34,197,94,.08),rgba(34,197,94,.15));
    border: 2px solid rgba(34,197,94,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    animation: popIn .4s cubic-bezier(.175,.885,.32,1.275) both;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(.5)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

/* ─── Footer ─── */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: .85rem;
    font-size: .6rem;
    color: var(--gray-400);
    border-top: 1px solid rgba(42,173,207,.04)
}

    footer a {
        color: var(--brand);
        text-decoration: none;
        font-weight: 600
    }

/* ─── Notification Modal ─── */
.notify-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 1rem
}

.notify-card {
    width: 100%;
    max-width: 400px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.12);
    overflow: hidden;
    animation: notifyPop .2s ease-out both
}

@keyframes notifyPop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.98)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

.notify-body {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: 1.25rem
}

.notify-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

    .notify-icon svg {
        width: 20px;
        height: 20px
    }

    .notify-icon.success {
        background: rgba(34,197,94,.08);
        color: var(--green)
    }

    .notify-icon.error {
        background: rgba(239,68,68,.08);
        color: #ef4444
    }

    .notify-icon.warning {
        background: rgba(245,158,11,.08);
        color: var(--amber)
    }

    .notify-icon.info {
        background: rgba(42,173,207,.08);
        color: var(--brand)
    }

.notify-msg {
    flex: 1;
    font-size: .85rem;
    color: var(--gray-500);
    line-height: 1.6;
    padding-top: .2rem;
    white-space: pre-line
}

.notify-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--gray-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    flex-shrink: 0
}

    .notify-close:hover {
        background: var(--gray-100);
        color: var(--gray-500)
    }

.notify-footer {
    display: flex;
    justify-content: flex-end;
    padding: .75rem 1.25rem;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50)
}

.notify-ok {
    padding: .4rem 1rem;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 600;
    color: var(--navy);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s
}

    .notify-ok:hover {
        background: var(--gray-100)
    }

/* ─── Loading ─── */
.sdk-loading {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center
}

    .sdk-loading.active {
        display: flex
    }

.sdk-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(42,173,207,.15);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .7s linear infinite
}

/* ─── Responsive ─── */
@media(max-width:960px) {
    main {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem
    }

    .info-side {
        text-align: center
    }

    .sf-step:hover {
        transform: none
    }

    .card-side {
        width: 100%;
        max-width: 420px
    }

    .info-stats {
        justify-content: center
    }

    .sys-flow {
        max-width: 400px;
        margin: 0 auto
    }

    .logo-row {
        justify-content: center
    }
}

@media(max-width:480px) {
    .info-side {
        display: none
    }

    main {
        padding: 1.5rem
    }

    .otp-input {
        width: 38px;
        height: 44px;
        font-size: 1rem
    }
}