/* FoodShed Owners Portal — Frontend Forms */

.fso-form {
    max-width: 480px;
    margin: 0 auto;
}

.fso-form__field {
    margin-bottom: 1.25em;
}

.fso-form__label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35em;
    font-size: 0.95em;
}

.fso-form__label--required::after {
    content: " *";
    color: #d63638;
}

.fso-form__input {
    display: block;
    width: 100%;
    padding: 0.6em 0.75em;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 1em;
    line-height: 1.5;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.fso-form__input:focus {
    border-color: #2271b1;
    outline: 2px solid rgba(34, 113, 177, 0.25);
    outline-offset: 0;
}

.fso-form__input--error {
    border-color: #d63638;
}

.fso-form__submit {
    display: inline-block;
    padding: 0.7em 1.5em;
    background: #52154E;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: "Lato", sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
    width: 100%;
}

.fso-form__submit:hover {
    background: #52154E;
}

.fso-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fso-form__links {
    margin-top: 1.25em;
    text-align: center;
    font-size: 0.9em;
}

.fso-form__links a {
    color: #2271b1;
    text-decoration: none;
}

.fso-form__links a:hover {
    text-decoration: underline;
}

/* Messages */

.fso-message {
    padding: 0.85em 1em;
    border-radius: 4px;
    margin-bottom: 1.25em;
    font-size: 0.95em;
    line-height: 1.5;
}

.fso-message--error {
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    color: #8a1c1f;
}

.fso-message--success {
    background: #f0f6e8;
    border-left: 4px solid #00a32a;
    color: #1a5a00;
}

.fso-message--info {
    background: #f0f6fc;
    border-left: 4px solid #72aee6;
    color: #1d4d80;
}

/* Password strength indicator */

.fso-password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 0.35em;
    transition: background 0.2s ease, width 0.2s ease;
}

.fso-password-strength--weak {
    background: #d63638;
    width: 33%;
}

.fso-password-strength--medium {
    background: #dba617;
    width: 66%;
}

.fso-password-strength--strong {
    background: #00a32a;
    width: 100%;
}

/* Account form — read-only field */

.fso-form__value {
    padding: 0.6em 0;
    font-size: 1em;
    color: #3c434a;
}

/* Access denied template */

.fso-access-denied {
    max-width: 560px;
    margin: 2em auto;
    text-align: center;
    padding: 2em;
}

.fso-access-denied__message {
    font-size: 1.1em;
    margin-bottom: 1.5em;
    line-height: 1.6;
}

.fso-access-denied__button {
    display: inline-block;
    padding: 0.7em 2em;
    background: #2271b1;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.fso-access-denied__button:hover {
    background: #135e96;
    color: #fff;
}

/* Logged-in state */

.fso-logged-in {
    max-width: 480px;
    margin: 0 auto;
}

.fso-logged-in__greeting {
    font-size: 1.05em;
    margin-bottom: 1em;
}

.fso-logged-in__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6em;
}

.fso-logged-in__link {
    display: block;
    padding: 0.75em 1.25em;
    background: #f0f0f1;
    border-radius: 4px;
    color: #1d2327;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.15s ease;
}

.fso-logged-in__link:hover {
    background: #2271b1;
    color: #fff;
}

.fso-logged-in__link--logout {
    background: transparent;
    color: #8c8f94;
    font-weight: 400;
    text-align: center;
    padding: 0.5em;
}

.fso-logged-in__link--logout:hover {
    background: transparent;
    color: #d63638;
}

/* Branded password flow forms (lost password / set password) */

.fso-form--password {
    max-width: 480px;
    margin: 2.5em auto;
    padding: 2.25em 2em;
    background: #ffffff;
    border: 1px solid #E8DFD6;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(82, 21, 78, 0.06);
    color: #2A1B2E;
}

.fso-form--password .fso-form__title {
    margin: 0 0 0.4em 0;
    color: #52154E;
    font-size: 1.6em;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.fso-form--password .fso-form__lead {
    margin: 0 0 1.5em 0;
    color: #6B5C66;
    font-size: 0.95em;
    line-height: 1.55;
}

.fso-form--password .fso-form__label {
    color: #2A1B2E;
}

.fso-form--password .fso-form__input {
    border: 1px solid #D8CFC6;
    background: #FBF7F2;
}

.fso-form--password .fso-form__input:focus {
    border-color: #52154E;
    background: #ffffff;
    outline: 2px solid rgba(82, 21, 78, 0.18);
}

.fso-form--password .fso-form__submit {
    background: #52154E;
    border-radius: 6px;
    transition: background 0.15s ease, transform 0.05s ease;
}

.fso-form--password .fso-form__submit:hover {
    background: #3F0F3C;
}

.fso-form--password .fso-form__submit:active {
    transform: translateY(1px);
}

.fso-form--password .fso-form__links {
    margin-top: 1.5em;
}

.fso-form--password .fso-form__links a {
    color: #52154E;
    font-weight: 600;
}

.fso-form--password .fso-form__links a:hover {
    color: #FCB534;
    text-decoration: none;
}
