/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #FCF3F1;
    color: #1c1c1e;
    min-height: 100vh;
}

.reset-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.close-btn svg {
    width: 20px;
    height: 20px;
}

.close-btn:hover {
    opacity: 0.7;
}

/* ---------------- Left Hero Panel ---------------- */
.hero-panel {
    flex: 0 0 50%;
    position: relative;
    min-height: 100vh;
    /* Replace with your product photo: */
    background-image: linear-gradient(135deg, #d9b8be 0%, #cba3ab 35%, #e2c4c9 65%, #b98d97 100%);
    /* background-image: url('/user/images/reset-hero.jpg'); */
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 30%);
    z-index: 1;
}

/* ---------------- Right Form Panel ---------------- */
.form-panel {
    flex: 1;
    background-color: #FCF3F1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.reset-form-wrapper {
    width: 100%;
    max-width: 380px;
}

/* Custom info toast (replaces alert()) */
.info-toast {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background-color: #fbf3df;
    border: 1px solid #cfa95c;
    color: #6b5321;
    padding: 14px 16px;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    border-radius: 2px;
    margin-bottom: 24px;
    animation: toastFadeIn 0.25s ease-out;
}

.info-toast.show {
    display: flex;
}

.info-toast-close {
    background: none;
    border: none;
    color: #6b5321;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 12px;
}

@keyframes toastFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.1rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1.25;
    color: #1c1c1e;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.form-subtitle {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #8a8378;
    margin-bottom: 40px;
}

.reset-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #6f6a5f;
    text-transform: uppercase;
}

.form-input {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #ddd0cc;
    padding: 8px 4px 14px;
    font-size: 0.9rem;
    color: #1c1c1e;
    outline: none;
    transition: border-color 0.2s;
}

.form-input::placeholder {
    color: #b8aca7;
}

.form-input:focus {
    border-bottom-color: #1c1c1e;
}

.submit-btn {
    background-color: #17130d;
    color: #ffffff;
    border: none;
    padding: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    -webkit-appearance: none;
    appearance: none;
}

.submit-btn:hover {
    background-color: #322a1d;
}

.submit-btn:active {
    transform: scale(0.99);
}

.submit-btn:disabled {
    background-color: #6b6154;
    color: #e8e0d8;
    cursor: not-allowed;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 24px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6f6a5f;
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: #1c1c1e;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
    .hero-panel {
        flex: 0 0 42%;
    }

    .form-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 800px) {
    .reset-container {
        flex-direction: column;
    }

    .hero-panel {
        flex: none;
        min-height: 240px;
    }

    .close-btn {
        color: #1c1c1e;
    }

    .form-panel {
        padding: 40px 24px;
    }
}
