:root {
    --bg1: #111827;
    /* əsas fon */
    --bg2: #0b1220;
    /* gradient keçid */
    --card: #0b1220aa;
    /* şüşə kart */
    --accent: #5eead4;
    /* sulu mavi-yaşıl */
    --accent-2: #60a5fa;
    /* mavi */
    --text: #e5e7eb;
    --muted: #94a3b8;
    --danger: #ef4444;
    --ok: #22c55e;
    --ring: #1f2937;
    --shadow: 0 15px 60px rgba(0, 0, 0, .45);
    --radius: 22px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    color: var(--text);
    background: radial-gradient(1200px 800px at 20% 10%, #0a1a38 0%, transparent 60%),
        radial-gradient(900px 600px at 80% 90%, #042b27 0%, transparent 55%),
        linear-gradient(135deg, var(--bg1), var(--bg2));
    overflow: hidden;
}

/* Animasiya olunan “blob”lar */
.blobs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    filter: blur(60px);
    opacity: .5
}

.blob {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #22d3ee, #2563eb 60%, transparent 70%);
    animation: float 16s ease-in-out infinite;
    mix-blend-mode: screen;
}

.blob:nth-child(2) {
    left: 65%;
    top: 10%;
    background: radial-gradient(circle at 30% 30%, #34d399, #10b981 60%, transparent 70%);
    animation-duration: 18s;
}

.blob:nth-child(3) {
    left: 10%;
    top: 65%;
    background: radial-gradient(circle at 30% 30%, #a78bfa, #6366f1 60%, transparent 70%);
    animation-duration: 20s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, 20px) scale(1.05);
    }
}

/* Mərkəzləşdirmə */
.wrap {
    position: relative;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 24px;
}

/* Kart */
.card {
    width: min(92vw, 430px);
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: "";
    position: absolute;
    inset: auto -40% -40% auto;
    width: 140%;
    height: 140%;
    background: conic-gradient(from 160deg, transparent, rgba(94, 234, 212, .14), transparent 40%);
    filter: blur(40px);
    transform: rotate(8deg);
    pointer-events: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.logo .mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0b1220;
    font-weight: 900;
    letter-spacing: .5px;
    box-shadow: 0 8px 28px rgba(96, 165, 250, .35);
}

.logo span {
    font-weight: 700;
    letter-spacing: .3px;
    font-size: 18px;
    color: #eaf2ff
}

.title {
    font-size: 24px;
    font-weight: 700;
    margin: 6px 0 2px
}

.subtitle {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px
}

/* Form sahələri */
.field {
    position: relative;
    margin: 18px 0 4px;
}

.input {
    width: 100%;
    padding: 14px 44px 14px 44px;
    /* ikon üçün yer */
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(10, 15, 25, .55);
    color: var(--text);
    outline: none;
    font-size: 15px;
    transition: border .2s, box-shadow .2s, transform .08s;
    box-shadow: inset 0 0 0 9999px rgba(255, 255, 255, .02);
}

.input:hover {
    border-color: rgba(94, 234, 212, .45)
}

.input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(94, 234, 212, .18);
}

.field .label {
    position: absolute;
    left: 44px;
    top: 50%;
    transform: translateY(-50%);
    color: #9fb0c6;
    pointer-events: none;
    transition: all .18s ease;
    font-size: 14px;
}

.field.has-content .label,
.input:focus+.label {
    top: 0;
    transform: translateY(-50%) scale(.88);
    background: linear-gradient(180deg, rgba(11, 18, 32, 1) 40%, transparent);
    padding: 0 6px;
    color: #cfe9ff;
    left: 40px;
}

.icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    opacity: .8;
}

.btn-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
    transition: transform .08s, background .2s, border .2s;
}

.btn-eye:hover {
    background: rgba(255, 255, 255, .08)
}

.btn-eye:active {
    transform: scale(.98)
}

/* Unutma linki və düymə sıra */
.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 12px 0 6px;
}

.link {
    color: #cfe9ff;
    font-size: 14px;
    text-decoration: none;
    position: relative;
}

.link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s;
    border-radius: 2px;
}

.link:hover::after {
    transform: scaleX(1)
}

.btn {
    width: 100%;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: .3px;
    color: #0b1220;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 15px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 28px rgba(96, 165, 250, .35), inset 0 0 0 0 rgba(255, 255, 255, .2);
    transition: transform .06s ease, box-shadow .2s ease, filter .2s ease;
}

.btn:hover {
    filter: saturate(120%) brightness(1.05)
}

.btn:active {
    transform: translateY(1px)
}

.btn[disabled] {
    opacity: .6;
    cursor: not-allowed
}

.hint {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 12px
}

/* Xəta & toast */
.error {
    color: var(--danger);
    font-size: 13px;
    margin-top: 6px;
}

.error.show {
    display: block
}

.toast {
    position: fixed;
    right: 20px;
    top: 20px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(20, 30, 48, .9);
    color: #eafff7;
    border: 1px solid rgba(94, 234, 212, .35);
    box-shadow: var(--shadow);
    display: flex;
    gap: 10px;
    align-items: center;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto
}

.toast svg {
    width: 18px
}

/* Modal (Parolu unutmusan?) */
.modal-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(2px);
}

.modal {
    width: min(92vw, 420px);
    border-radius: 18px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: var(--shadow);
}

.modal h3 {
    margin: 0 0 8px;
    font-size: 18px
}

.modal p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px
}

.modal .row {
    justify-content: flex-end
}

.btn-secondary {
    background: transparent;
    color: #eaf2ff;
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: .2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .06)
}

.modal .btn {
    width: auto;
    padding: 10px 16px;
    margin-top: 0
}

@media (max-width:420px) {
    .title {
        font-size: 22px
    }

    .subtitle {
        font-size: 13px
    }
}
