/* =============================================================
   FlowersGifting — Auth Pages Shared Styles
   Shared stylesheet for: Sign In, Register, Forgot Password,
   Reset Password, Reset Password Message
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --green:        #85a019;
    --green-dark:   #6b8114;
    --green-light:  #f4f8e8;
    --green-mid:    #e8f0c0;
    --pink:         #d63384;
    --pink-dark:    #b5276e;
    --pink-light:   #fdf0f6;
    --text:         #1c2b1c;
    --text-muted:   #6b7b6b;
    --border:       #e4ecd0;
    --white:        #ffffff;
    --bg:           #fbfcfa;
    --radius:       16px;
    --shadow:       0 4px 18px rgba(0,0,0,.04);
}

body { font-family: 'DM Sans', sans-serif; background: var(--bg); }

/* ── Page layout ── */
.auth-section, .signin-section {
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 40px 16px;
    position: relative;
}

/* ── Card ── */
.auth-card, .signin-card, .register-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
    animation: fadeUp .35s ease both;
    position: relative;
    z-index: 1;
}
.register-card {
    max-width: 500px;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Card header ── */
.auth-card-header, .signin-card-header, .success-header {
    background: linear-gradient(145deg, #d63384 0%, #85a019 100%);
    padding: 32px 40px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.auth-card-header::before, .signin-card-header::before, .success-header::before {
    content: '';
    position: absolute; top: -40px; right: -40px;
    width: 150px; height: 150px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.auth-card-header::after, .signin-card-header::after, .success-header::after {
    content: '';
    position: absolute; bottom: -30px; left: -30px;
    width: 110px; height: 110px; border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.header-brand, .success-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px; font-weight: 700;
    color: #fff; letter-spacing: .4px;
    margin-bottom: 6px;
    position: relative;
}
.header-brand span { margin-right: 6px; }
.header-title, .success-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px; font-weight: 700;
    color: #fff; line-height: 1.25;
    margin-bottom: 4px;
    position: relative;
}
.header-sub {
    font-size: 13.5px; color: rgba(255,255,255,.85);
    position: relative;
}
.header-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; position: relative;
}
.header-icon svg { width: 26px; height: 26px; stroke: #fff; }

/* ── Success header extra ── */
.check-circle {
    width: 68px; height: 68px; border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: 2.5px solid rgba(255,255,255,.5);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px; position: relative;
    animation: popIn .5s cubic-bezier(0.175,0.885,0.32,1.275) both;
}
@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.check-circle svg { width: 32px; height: 32px; stroke: #fff; }

/* ── Card body ── */
.auth-card-body, .signin-card-body, .register-card-body { padding: 32px 40px 36px; }

/* ── Error alert ── */
.auth-alert, .signin-alert, .register-alert {
    background: #fdf0f6;
    border: 1px solid #f9cbdc;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13.5px;
    color: var(--pink-dark);
}
.auth-alert p, .signin-alert p, .register-alert p { margin: 0; line-height: 1.6; }

/* ── Social buttons ── */
.social-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.btn-social {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 12px 20px;
    border-radius: 50px; border: 1.5px solid var(--border);
    background: var(--white); color: var(--text);
    font-size: 14px; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s, transform .15s;
    letter-spacing: .02em;
}
.btn-social:hover {
    background: #fdfdfa;
    border-color: #ccd9b8;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
    transform: translateY(-1px);
    color: var(--text);
    text-decoration: none;
}
.btn-social svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Divider ── */
.or-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0; color: var(--text-muted);
    font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.or-divider::before,
.or-divider::after {
    content: ''; flex: 1;
    height: 1px; background: var(--border);
}

/* ── Name row ── */
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ── Form fields ── */
.field-group { margin-bottom: 18px; }
.field-label {
    display: block;
    font-size: 11.5px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: #4a5a30; margin-bottom: 6px;
}
.field-wrap { position: relative; }
.field-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #85a019; pointer-events: none; line-height: 0;
}
.field-icon svg { width: 16px; height: 16px; }

.form-field {
    width: 100%; height: 48px;
    padding: 0 44px 0 42px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px; color: var(--text);
    background: #fdfdfa;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.form-field::placeholder { color: #b0bca5; }
.form-field:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(133,160,25,.15);
}
.form-field.error-field {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(214,51,132,.10);
}
.field-error {
    font-size: 11.5px; color: var(--pink);
    margin-top: 5px; display: none;
    font-weight: 500;
}

/* Password toggle */
.pwd-toggle {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; padding: 4px;
    color: #b0bca5; line-height: 0;
}
.pwd-toggle:hover { color: var(--green); }
.pwd-toggle svg { width: 17px; height: 17px; }

/* Password strength */
.pwd-strength { margin-top: 8px; }
.pwd-strength-bar {
    height: 4px; border-radius: 4px;
    background: var(--border); overflow: hidden; margin-bottom: 4px;
}
.pwd-strength-fill {
    height: 100%; border-radius: 4px; width: 0%;
    transition: width .3s, background .3s;
}
.pwd-strength-label {
    font-size: 11px; font-weight: 600; color: var(--text-muted);
}

/* ── Info box / steps (reset msg & forgot password) ── */
.info-box {
    background: var(--green-light); border: 1px solid var(--border);
    border-left: 3px solid var(--green);
    border-radius: 0 10px 10px 0;
    padding: 12px 16px; margin-bottom: 22px;
    font-size: 13px; color: #4a5a30; line-height: 1.65;
}
.steps-list { text-align: left; margin: 20px 0 28px; }
.step-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; }
.step-num {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--green-light);
    border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: var(--green);
    flex-shrink: 0; margin-top: 1px;
}
.step-text { font-size: 14px; color: var(--text); line-height: 1.6; }
.step-text strong { color: var(--green-dark); }
.info-note {
    background: var(--green-light); border: 1px solid var(--border);
    border-left: 3px solid var(--green);
    border-radius: 0 10px 10px 0;
    padding: 12px 16px; margin-bottom: 24px;
    font-size: 13px; color: #4a5a30;
    line-height: 1.65; text-align: left;
}

/* ── reCAPTCHA ── */
.recaptcha-wrap { display: flex; justify-content: center; margin: 4px 0 16px; }

/* ── Submit button ── */
.btn-auth, .btn-signin, .btn-register {
    width: 100%; height: 48px;
    background: var(--pink); color: var(--white);
    border: none; border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14.5px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(214,51,132,.25);
    margin-top: 4px;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
}
.btn-auth:hover, .btn-signin:hover, .btn-register:hover {
    background: var(--pink-dark); color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214,51,132,.35);
    text-decoration: none;
}
.btn-auth:active, .btn-signin:active, .btn-register:active { transform: translateY(0); }

/* ── Terms note ── */
.terms-note {
    font-size: 11.5px; color: var(--text-muted);
    text-align: center; margin-top: 12px; line-height: 1.6;
}
.terms-note a { color: var(--green); text-decoration: none; font-weight: 600; }
.terms-note a:hover { text-decoration: underline; }

/* ── Footer links ── */
.auth-links, .signin-links, .register-links {
    display: flex; justify-content: center; gap: 24px;
    margin-top: 20px;
}
.auth-links a, .signin-links a, .register-links a {
    font-size: 13.5px; font-weight: 600;
    color: var(--green); text-decoration: none;
    transition: color .18s;
}
.auth-links a:hover, .signin-links a:hover, .register-links a:hover { color: var(--green-dark); text-decoration: underline; }

/* ── Mobile ── */
@media (max-width: 480px) {
    .auth-card-header, .signin-card-header, .success-header { padding: 26px 24px 22px; }
    .auth-card-body, .signin-card-body, .register-card-body { padding: 24px 24px 28px; }
    .header-title, .success-title { font-size: 21px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .auth-links, .signin-links, .register-links { flex-direction: column; align-items: center; gap: 10px; }
}
