:root {
    --primary: #6d28d9;
    --primary-dark: #4c1d95;
    --primary-soft: rgba(109, 40, 217, 0.08);
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --surface: #ffffff;
    --shadow-soft: 0 10px 40px rgba(17, 24, 39, 0.06);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --container-safe: min(100%, 100vw - 24px);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #ffffff;
    overflow-x: hidden;
}

img,
svg {
    max-width: 100%;
}

a {
    text-decoration: none;
}

.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    width: var(--container-safe);
}

/* PAGE */

.reset-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.16), transparent 26%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.10), transparent 24%),
        linear-gradient(180deg, #faf8ff 0%, #ffffff 52%, #ffffff 100%);
}

.reset-shell {
    position: relative;
    z-index: 2;
    padding: 56px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* BRAND */

.reset-brand-block {
    margin-bottom: 26px;
}

.reset-brand-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.reset-brand-link:hover {
    transform: translateY(-2px);
}

.reset-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

.reset-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.06;
    margin: 0 0 10px;
    color: #111827;
}

.reset-subtitle {
    max-width: 720px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.7;
}

/* ALERTS */

.reset-alerts {
    max-width: 640px;
    margin-bottom: 18px;
}

.reset-alert {
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

/* CARD */

.reset-card {
    width: 100%;
    max-width: 620px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.98) 100%);
    border: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: 0 30px 70px rgba(17, 24, 39, 0.12);
    backdrop-filter: blur(14px);
}

.reset-card-body {
    padding: 34px;
}

.reset-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.reset-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.35rem;
    flex-shrink: 0;
}

.reset-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 4px;
    line-height: 1.2;
}

.reset-card-subtitle {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.96rem;
}

/* FORM */

.form-group-modern {
    text-align: left;
    min-width: 0;
}

.form-label-modern {
    display: inline-block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.94rem;
}

.input-icon-wrap {
    position: relative;
}

.input-leading-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 3;
}

.form-control-modern {
    border-radius: 18px;
    border: 1px solid #d1d5db;
    background: rgba(255, 255, 255, 0.96);
    padding: 0.95rem 1rem 0.95rem 2.85rem;
    min-height: 58px;
    font-size: 1rem;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control-modern::placeholder {
    color: #9ca3af;
}

.form-control-modern:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.14);
    background: #fff;
}

.form-control-modern.is-invalid,
.was-validated .form-control-modern:invalid {
    border-color: #dc3545;
    background-image: none;
}

/* BUTTONS */

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border: none;
    color: #fff;
    border-radius: 999px;
    padding: 0.95rem 1.35rem;
    font-weight: 700;
    box-shadow: 0 14px 34px rgba(109, 40, 217, 0.24);
    transition: all 0.25s ease;
    min-height: 56px;
}

.btn-primary-modern:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-modern {
    border: 1px solid var(--border);
    color: var(--text);
    background: #fff;
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-outline-modern:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff;
    transform: translateY(-1px);
}

/* BACK */

.reset-back-wrap {
    margin-top: 22px;
}

/* RESPONSIVE */

@media (max-width: 991.98px) {
    .reset-shell {
        padding: 42px 0;
    }

    .reset-logo {
        height: 104px;
    }

    .reset-card-body {
        padding: 28px;
    }
}

@media (max-width: 767.98px) {
    :root {
        --radius-xl: 22px;
        --radius-lg: 18px;
        --radius-md: 14px;
    }

    .reset-shell {
        padding: 28px 0;
        min-height: auto;
    }

    .reset-logo {
        height: 88px;
        margin-bottom: 10px;
    }

    .reset-title {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
        margin-bottom: 8px;
    }

    .reset-subtitle {
        font-size: 0.96rem;
        line-height: 1.6;
        padding: 0 4px;
    }

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

    .reset-card-head {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .reset-card-icon {
        width: 50px;
        height: 50px;
        border-radius: 16px;
        font-size: 1.2rem;
    }

    .reset-card-title {
        font-size: 1.2rem;
    }

    .reset-card-subtitle {
        font-size: 0.92rem;
    }

    .form-control-modern {
        min-height: 54px;
        font-size: 0.97rem;
        padding-left: 2.65rem;
    }

    .input-leading-icon {
        left: 14px;
    }

    .btn-primary-modern,
    .btn-outline-modern {
        min-height: 52px;
        font-size: 0.95rem;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 15px;
    }

    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        width: min(100%, 100vw - 20px);
    }

    .reset-shell {
        padding: 22px 0;
    }

    .reset-logo {
        height: 78px;
    }

    .reset-card {
        border-radius: 22px;
    }

    .reset-card-body {
        padding: 18px;
    }

    .form-label-modern {
        font-size: 0.9rem;
    }

    .form-control-modern {
        min-height: 52px;
        border-radius: 16px;
        font-size: 0.95rem;
    }

    .btn-primary-modern,
    .btn-outline-modern {
        padding: 0.82rem 1.05rem;
        font-size: 0.94rem;
    }

    .reset-back-wrap {
        margin-top: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary-modern,
    .btn-outline-modern,
    .reset-brand-link {
        transition: none !important;
    }
}