/* ==========================================================
   ZippyFeed Franchise Portal - Auth Pages (Login / Register)
   ========================================================== */

* {
    box-sizing: border-box;
}

body.fr-bg-cream {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    /* padding: 20px; */
    padding-top: 170px !important;
    /* background: #100b0b; */
    background: #fff1de;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (max-width:768px) {
 body.fr-bg-cream {
        padding: 12px;
        align-items: flex-start;
        padding-top: 170px !important;
    }
}

.fr-form-wrap {
    max-width: 480px;
    width: 100%;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.fr-form-wrap h2 {
    margin: 0 0 20px;
    text-align: center;
    font-size: 22px;
}

.fr-form-wrap h2 .accent {
    color: #C81D25;
}

.fr-subtext {
    text-align: center;
    color: #666;
    font-size: 13.5px;
    margin: -8px 0 18px;
    line-height: 1.5;
}

.fr-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.fr-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
}

.fr-success-icon {
    text-align: center;
    font-size: 46px;
    color: #28a745;
    margin-bottom: 10px;
}

.fr-field {
    margin-bottom: 14px;
}

.fr-field.fr-field-last {
    margin-bottom: 20px;
}

.fr-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.fr-input,
.fr-select {
    width: 100%;
    display: block;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    color: #222;
}

.fr-input:focus,
.fr-select:focus {
    outline: none;
    border-color: #C81D25;
    box-shadow: 0 0 0 3px rgba(200, 29, 37, 0.12);
}

.password-container {
    position: relative;
}

.password-container input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.password-toggle-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
}

.fr-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 13px;
}

.fr-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
}

.fr-remember input {
    margin: 0;
}

.fr-forgot-link {
    color: #C81D25;
    text-decoration: none;
}

.fr-forgot-link:hover {
    text-decoration: underline;
}

.btn-chili {
    width: 100%;
    padding: 12px;
    background: #C81D25;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-chili:hover {
    background: #a4171e;
}

.fr-login-link {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
}

.fr-login-link a {
    color: #C81D25;
    text-decoration: none;
}

.fr-login-link a:hover {
    text-decoration: underline;
}

/* Tablet */
@media (max-width: 768px) {
    .fr-form-wrap {
        max-width: 420px;
        padding: 26px 22px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    body.fr-bg-cream {
        padding: 12px;
        align-items: flex-start;
        padding-top: 170px !important;
        /* padding-top: 30px; */
    }

    .fr-form-wrap {
        max-width: 100%;
        padding: 20px 16px;
        border-radius: 10px;
    }

    .fr-form-wrap h2 {
        font-size: 19px;
    }

    .fr-input,
    .fr-select,
    .password-container input {
        font-size: 16px; /* prevents iOS auto-zoom on focus */
        padding: 10px 12px;
    }

    .password-container input {
        padding-right: 38px;
    }

    .fr-row-between {
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn-chili {
        padding: 13px;
    }
}

/* Very small phones */
@media (max-width: 340px) {
    .fr-form-wrap {
        padding: 16px 12px;
    }
}
