/* LNGRIG — shared public form layout */

.auth-section {
    padding: 2.5rem 0 4rem;
    background: var(--bg);
}

.auth-layout {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-layout--wide {
    max-width: 640px;
}

.auth-layout--dashboard {
    max-width: 720px;
}

.auth-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.auth-card + .auth-card {
    margin-top: 1.25rem;
}

.auth-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.auth-card__subtitle {
    margin: 0 0 1.5rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-card__heading {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    color: var(--navy);
}

.lngrig-form .form-group {
    margin-bottom: 1.15rem;
}

.lngrig-form label,
.lngrig-form .form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--navy);
}

.lngrig-form .form-control,
.lngrig-form select.form-control,
.lngrig-form textarea.form-control {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 0.85rem;
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.lngrig-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.lngrig-form select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.41.59 6 5.17 10.59.59 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.25rem;
    cursor: pointer;
}

.lngrig-form .form-control:focus,
.lngrig-form select.form-control:focus,
.lngrig-form textarea.form-control:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.2);
}

.lngrig-form .form-control:disabled {
    background-color: #e2e8f0;
    color: var(--muted);
    cursor: not-allowed;
}

.lngrig-form input:-webkit-autofill,
.lngrig-form input:-webkit-autofill:hover,
.lngrig-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text) !important;
    box-shadow: 0 0 0 1000px #f8fafc inset !important;
    border: 1px solid #cbd5e1 !important;
}

.lngrig-form .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

.form-actions .btn {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
}

.form-footer-link {
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
}

.form-footer-link a {
    font-weight: 600;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}
.form-label-row label { margin-bottom: 0; }
.form-inline-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-light);
}
.form-inline-link:hover { color: var(--amber-dark); }

.password-reset-dev-link a {
    word-break: break-all;
    font-size: 0.85rem;
}

.contact-form-wrap {
    max-width: 720px;
    margin: 2rem auto 0;
}

.contact-form-wrap .auth-card {
    padding: 2rem;
}

.auth-alerts {
    margin-bottom: 1rem;
}

.auth-alerts .alert {
    margin-bottom: 0.5rem;
}

@media (max-width: 560px) {
    .auth-card {
        padding: 1.5rem 1.25rem;
    }
    .lngrig-form .form-row-2 {
        grid-template-columns: 1fr;
    }
}
