/* ===================================================
   Auth / Standalone Pages – FamilyBudget
   Folosit de: login, register, forgot-password,
               reset-password, confirm-email,
               setup-family, error
   =================================================== */

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

/* ---- Base ---- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #F4F7F4;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
}

/* ---- Containere auth ---- */
.login-container,
.container-form {
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
}
.register-container {
    max-width: 550px;
    margin: 0 auto;
    width: 100%;
}
.confirm-card {
    max-width: 480px;
    margin: 2rem auto;
    width: 100%;
}
.setup-container {
    max-width: 560px;
    margin: 2rem auto;
    width: 100%;
}
.error-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* ---- Card ---- */
.card {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #E0E6E0;
}
.card-header {
    background-color: #1A531A;
    color: white;
    border-radius: 8px 8px 0 0 !important;
    padding: 2rem;
}
/* confirm-email foloseste clasa proprie pentru header */
.card-header-brand {
    background-color: #1A531A;
    color: #fff;
    border-radius: 8px 8px 0 0;
    padding: 1.75rem 2rem;
}

/* ---- Butoane ---- */
.btn-primary {
    background-color: #1A531A;
    border-color: #1A531A;
    border-radius: 8px;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #457B45 !important;
    border-color: #457B45 !important;
}
.btn-brand {
    background-color: #1A531A;
    border-color: #1A531A;
    color: #fff;
    border-radius: 8px;
}
.btn-brand:hover,
.btn-brand:focus {
    background-color: #457B45;
    border-color: #457B45;
    color: #fff;
}
.btn-outline-primary {
    color: #1A531A;
    border-color: #1A531A;
    border-radius: 8px;
}
.btn-outline-primary:hover {
    background-color: #1A531A;
    border-color: #1A531A;
    color: #fff;
}

/* ---- Link-uri ---- */
a { color: #1A531A; }
a:hover { color: #457B45; }

/* ---- Formulare ---- */
.form-control:focus {
    border-color: #1A531A;
    box-shadow: 0 0 0 0.2rem rgba(26, 83, 26, 0.15);
}
.invalid-feedback {
    display: block;
}

/* ---- confirm-email ---- */
.code-input {
    font-size: 1.6rem;
    text-align: center;
    letter-spacing: 0.6rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #E0E6E0;
}
.code-input:focus {
    border-color: #1A531A;
    box-shadow: 0 0 0 0.2rem rgba(26, 83, 26, 0.15);
    outline: none;
}
.info-box {
    background-color: rgba(26, 83, 26, 0.06);
    border-left: 4px solid #1A531A;
    padding: 14px 16px;
    border-radius: 0 8px 8px 0;
}

/* ---- setup-family ---- */
.brand-header {
    text-align: center;
    margin-bottom: 2rem;
}
.brand-header img {
    height: 48px;
    margin-bottom: 0.75rem;
}
.brand-header h1 {
    font-size: 1.5rem;
    color: #1A531A;
    font-weight: 700;
    margin: 0;
}
.option-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #5C635C;
    font-size: 0.85rem;
}
.option-divider::before,
.option-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid #E0E6E0;
}
.option-divider span { padding: 0 1rem; }
.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #F2C94C;
    color: #1A1C1A;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}
.section-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #1A1C1A;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* ---- error page ---- */
.error-icon {
    font-size: 5rem;
    color: #dc3545;
}

/* ====================================================
   Responsive – mobil
   ==================================================== */
@media (max-width: 576px) {
    body {
        align-items: flex-start;
        padding: 1rem 0;
    }
    .card-header,
    .card-header-brand {
        padding: 1.25rem 1rem;
    }
    .card-body.p-4 {
        padding: 1rem !important;
    }
    .code-input {
        font-size: 1.3rem;
        letter-spacing: 0.4rem;
    }
    .confirm-card,
    .setup-container {
        margin: 0.5rem auto;
    }
    /* Input-uri mai mari pe mobil (previne zoom iOS) */
    .form-control {
        font-size: 1rem;
    }
}
