* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary2: #764ba2;
    --success: #10b981;
    --error: #ef4444;
    --muted: #6b7280;
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
        sans-serif;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    color: #111;
}

body::before,
body::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    animation: float 20s infinite ease-in-out;
}

body::before {
    width: 420px;
    height: 420px;
    top: -210px;
    left: -210px;
}

body::after {
    width: 320px;
    height: 320px;
    bottom: -160px;
    right: -160px;
    animation-delay: 5s;
}

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

    33% {
        transform: translate(30px, -30px) scale(1.07);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.container {
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 1;
}

.card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    animation: up 0.5s ease-out;
}

@keyframes up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    padding: 40px 40px 28px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #fff;
}

.icon-wrap {
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.28);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.38);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
    }
}

.icon-wrap svg {
    width: 42px;
    height: 42px;
    stroke-width: 2;
}

h1 {
    font-family: "Poppins", sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.sub {
    opacity: 0.95;
    font-size: 15px;
}

.card-body {
    padding: 36px 40px;
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 34px;
    position: relative;
}

.steps::before {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    top: 20px;
    height: 2px;
    background: #e5e7eb;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.num {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #9ca3af;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
}

.step.active .num {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 6px 14px rgba(102, 126, 234, 0.45);
}

.step.done .num {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

.label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 600;
}

.step.active .label {
    color: #fff;
    opacity: 0.9;
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fade 0.35s ease-out;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.group {
    margin-bottom: 22px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
}

.i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    width: 20px;
    height: 20px;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    background: #f9fafb;
    transition: 0.25s;
}

*/ input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

input.error {
    border-color: var(--error);
    background: #fef2f2;
}

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.a-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.a-success {
    background: #d1fae5;
    color: #064e3b;
    border: 1px solid #a7f3d0;
}

.a-error {
    background: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fecaca;
}

.err {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn {
    width: 100%;
    padding: 14px 22px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.25s;
}

.b1 {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #fff;
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.45);
}

.b1:hover {
    transform: translateY(-1px);
}

.b1:active {
    transform: translateY(0);
}

.b1:disabled {
    background: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.btn.loading .spinner {
    display: block;
}

.btn.loading .t {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.back {
    text-align: center;
    margin-top: 18px;
}

.back a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.back a:hover {
    opacity: 0.9;
}

.code-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.code {
    width: 70px;
    /* bigger input box */
    height: 70px;
    font-size: 42px !important;
    /* large font for visibility */
    line-height: 1.1;
    /* aligns text vertically */
    font-weight: 900 !important;
    /* extra bold numbers */
    text-align: center;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    color: #000 !important;
    /* solid black numbers */
    caret-color: #000;
    /* black cursor */
    appearance: none;
    -webkit-appearance: none;
}

.code::placeholder {
    color: #c7c7c7;
}

.code:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
    outline: none;
    color: #000 !important;
}

.resend {
    text-align: center;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.resend p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 6px;
}

.resend button {
    background: none;
    border: 2px solid #e5e7eb;
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 10px;
    transition: 0.2s;
}

.resend button:hover {
    background: #f3f4f6;
}

.resend button:disabled {
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.timer {
    color: #ef4444;
    font-weight: 800;
    margin-left: 6px;
}

.pwr {
    margin-top: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
}

.s-l {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #6b7280;
}

.s-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.s-fill {
    height: 100%;
    width: 0%;
    transition: 0.3s;
    border-radius: 4px;
}

.weak {
    width: 33%;
    background: #ef4444;
}

.medium {
    width: 66%;
    background: #f59e0b;
}

.strong {
    width: 100%;
    background: #10b981;
}

.req {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}

.req.met {
    color: #10b981;
}

.ok {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid currentColor;
}

.ok.met {
    background: currentColor;
}

.success {
    padding: 40px 0;
    text-align: center;
}

.circle {
    width: 108px;
    height: 108px;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: scale 0.45s ease-out;
}

@keyframes scale {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.circle svg {
    width: 56px;
    height: 56px;
    stroke: #fff;
    stroke-width: 3;
    fill: none;
}

@media (max-width: 560px) {
    .card-header {
        padding: 30px 22px;
    }

    h1 {
        font-size: 24px;
    }

    .card-body {
        padding: 26px 22px;
    }

    .icon-wrap {
        width: 72px;
        height: 72px;
    }

    .icon-wrap svg {
        width: 36px;
        height: 36px;
    }

    .code {
        width: 48px;
        height: 50px;
        font-size: 50px;
    }
}
