﻿/* ============================================================
   Falcora — Password Reset Pages
   Content/css/auth-reset.css
   White page, logo top-left, wider shorter gradient cards
   ============================================================ */

:root {
    --color-primary: #1B3BF5;
    --color-primary-dark: #0F2BD4;
    --color-text: #1A1D2B;
    --color-text-secondary: #5E6278;
    --color-text-muted: #9CA0B0;
    --color-border: #E4E6EF;
    --color-red: #EF4444;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
}

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

html {
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: #FFFFFF;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input {
    font-family: inherit;
    font-size: 16px;
}

/* ── Logo bar ── */
.reset-header {
    padding: 28px 36px;
    flex-shrink: 0;
}

.reset-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

    .reset-logo svg {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

/* ── Page center ── */
.reset-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px 48px;
}

/* ── Gradient Card — wider, shorter ── */
.reset-card {
    width: 100%;
    max-width: 580px;
    border-radius: 20px;
    padding: 40px 44px;
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #0B1437 0%, #0E1E6E 30%, #1B3BF5 70%, #2D7AFF 100%);
    box-shadow: 0 4px 8px rgba(11, 20, 55, 0.15), 0 24px 64px rgba(27, 59, 245, 0.2);
}

    .reset-card::before {
        content: '';
        position: absolute;
        top: -20%;
        right: -10%;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(45, 122, 255, 0.35) 0%, transparent 70%);
        pointer-events: none;
    }

    .reset-card::after {
        content: '';
        position: absolute;
        top: 10%;
        right: 5%;
        width: 200px;
        height: 400px;
        background: repeating-linear-gradient( -35deg, transparent, transparent 8px, rgba(255, 255, 255, 0.03) 8px, rgba(255, 255, 255, 0.03) 9px );
        pointer-events: none;
    }

    .reset-card > * {
        position: relative;
        z-index: 2;
    }

/* ── Icon ── */
.reset-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

    .reset-icon svg {
        color: #fff;
    }

.reset-icon--success {
    background: rgba(10, 191, 107, 0.15);
    border-color: rgba(10, 191, 107, 0.25);
}

    .reset-icon--success svg {
        color: #0ABF6B;
    }

/* ── Typography ── */
.reset-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 6px;
}
.nav__logo-icon {
    width: 110px;
}
.reset-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 28px;
}

/* ── Form Field ── */
.reset-field {
    margin-bottom: 20px;
}

.reset-input-wrap {
    position: relative;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    padding: 0 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .reset-input-wrap:focus-within {
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
    }

.reset-input-wrap--error {
    border-color: var(--color-red) !important;
}

.reset-input-icon {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    margin-right: 12px;
}

.reset-input-content {
    flex: 1;
    padding: 10px 0;
}

.reset-input-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.reset-input {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15px;
    padding: 0;
    line-height: 1.4;
    -webkit-appearance: none;
}

    .reset-input::placeholder {
        color: rgba(255, 255, 255, 0.3);
    }

.reset-input-clear {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s;
}

    .reset-input-clear:hover {
        color: rgba(255, 255, 255, 0.7);
    }

.reset-pw-toggle {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s;
}

    .reset-pw-toggle:hover {
        color: rgba(255, 255, 255, 0.7);
    }

.reset-field-error {
    display: block;
    font-size: 12px;
    color: #FF6B6B;
    margin-top: 6px;
    padding-left: 4px;
}

/* ── Button ── */
.reset-btn {
    width: 100%;
    height: 52px;
    background: #fff;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

    .reset-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

    .reset-btn:active:not(:disabled) {
        transform: translateY(0);
    }

    .reset-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.reset-btn-loader svg {
    animation: spin 0.8s linear infinite;
}

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

/* ── Links ── */
.reset-link {
    display: block;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 18px;
}

    .reset-link a, .reset-link button {
        color: rgba(255, 255, 255, 0.8);
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 3px;
        transition: color 0.2s;
        background: none;
        border: none;
        font-size: 14px;
        cursor: pointer;
        font-family: inherit;
    }

        .reset-link a:hover, .reset-link button:hover {
            color: #fff;
        }

/* ── Alert ── */
.reset-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    background: rgba(239, 68, 68, 0.15);
    color: #FF6B6B;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

    .reset-alert svg {
        flex-shrink: 0;
    }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
    .reset-header {
        padding: 24px 24px;
    }

    .reset-page {
        padding: 0 16px 32px;
    }

    .reset-card {
        padding: 36px 28px;
        max-width: 100%;
        border-radius: 16px;
    }

    .reset-title {
        font-size: 22px;
    }

    .reset-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .reset-header {
        padding: 20px 16px;
    }

    .reset-page {
        padding: 0 12px 24px;
    }

    .reset-card {
        padding: 28px 20px;
        border-radius: 14px;
    }

    .reset-title {
        font-size: 20px;
    }

    .reset-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 20px;
    }

    .reset-btn {
        height: 48px;
        font-size: 15px;
    }

    .reset-logo {
        font-size: 18px;
    }

        .reset-logo svg {
            width: 28px;
            height: 28px;
        }
}
