﻿
/* =========================================================
   Baumhaus · Password reset pages
   Depends on app.css for header / footer / body styling
   ========================================================= */

/* Prevent width + padding overflow (the classic 100% + padding gotcha) */
.forgot-card,
.forgot-card *,
.forgot-card *::before,
.forgot-card *::after {
    box-sizing: border-box;
}

/* ---------- Card ---------- */
.forgot-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(40, 30, 20, .06);
    padding: 40px 36px 32px;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

/* ---------- Status icon ---------- */
.forgot-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.forgot-icon--ok {
    background: #eefaf2;
    color: #2f6b4a;
    border: 1px solid #c9ecd6;
}
.forgot-icon--error {
    background: #fdecea;
    color: #a8441f;
    border: 1px solid #f5c6bb;
}

/* ---------- Headings ---------- */
.forgot-heading {
    margin: 0 0 12px;
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 600;
    color: #2b2a28;
    line-height: 1.25;
}
.forgot-message {
    margin: 0 0 26px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #6b6862;
}
.forgot-message strong {
    color: #2b2a28;
    font-weight: 600;
}

/* ---------- Alert (inline error) ---------- */
.forgot-alert {
    margin: 0 0 16px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #a8441f;
    background: #fff8f0;
    border: 1px solid #f0d5b5;
    border-left: 4px solid #e8a13c;
    border-radius: 8px;
    text-align: left;
}

/* ---------- Form ---------- */
.forgot-form {
    text-align: left;
}
.forgot-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}
.forgot-field label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b6862;
}
.forgot-input {
    display: block;
    width: 100%;
    max-width: 100%;
    font-family: inherit;
    font-size: 15px;
    color: #2b2a28;
    background: #fff;
    border: 1.5px solid #eae6df;
    border-radius: 10px;
    padding: 13px 16px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.forgot-input:hover { border-color: #d7d2c9; }
.forgot-input:focus {
    border-color: #c4552a;
    box-shadow: 0 0 0 3px rgba(196, 85, 42, .15);
}
.forgot-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
    -webkit-text-fill-color: #2b2a28 !important;
}

/* ---------- Inline messages ---------- */
.forgot-msg {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    min-height: 14px;
}
.forgot-msg--ok    { color: #3a8a88; }
.forgot-msg--error { color: #c4552a; }

/* ---------- Buttons ---------- */
.forgot-btn {
    display: block;
    width: 100%;
    max-width: 100%;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    color: #fff;
    background: #c4552a;
    border: 1.5px solid #c4552a;
    border-radius: 999px;
    padding: 15px 24px;
    cursor: pointer;
    transition: background .18s, transform .12s, box-shadow .2s;
    box-shadow: 0 6px 16px rgba(196, 85, 42, .25);
    -webkit-tap-highlight-color: transparent;
}
.forgot-btn:hover {
    background: #a8441f;
    border-color: #a8441f;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(196, 85, 42, .32);
}
.forgot-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(196, 85, 42, .22);
}
.forgot-btn--secondary {
    background: transparent;
    color: #c4552a;
    box-shadow: none;
}
.forgot-btn--secondary:hover {
    background: #c4552a;
    color: #fff;
    box-shadow: 0 10px 22px rgba(196, 85, 42, .25);
}
.forgot-back {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    color: #6b6862;
    text-decoration: none;
    transition: color .18s;
}
.forgot-back:hover {
    color: #c4552a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
    .forgot-card    { padding: 32px 22px 26px; border-radius: 14px; }
    .forgot-heading { font-size: 20px; }
    .forgot-message { font-size: 14px; }
}