﻿/* wwwroot/css/identity-shim.css
   A tiny CSS shim so Bootstrap-y class names look modern without Bootstrap. */

/* Layout helpers used by scaffolded pages */
.container {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

.row {
    display: grid;
    gap: 1rem;
}

@media (min-width:768px) {
    .row.md-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Typography */
.form-label, label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.form-text {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Inputs */
.form-control, input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], textarea, select {
    width: 100%;
    appearance: none;
    background-color: #fff;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #111827;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: box-shadow .15s ease, border-color .15s ease;
}

    .form-control:focus, input:focus, textarea:focus, select:focus {
        outline: none;
        border-color: #d7a787; /* var(--lz-beige) equivalent */
        box-shadow: 0 0 0 3px rgba(215,167,135,0.25);
    }

/* Validation */
.text-danger, .field-validation-error, .validation-summary-errors {
    color: #b91c1c;
}
/* red-700 */
.input-validation-error, .form-control.input-validation-error {
    border-color: #b91c1c !important;
    box-shadow: 0 0 0 3px rgba(185,28,28,0.15);
}

.invalid-feedback {
    color: #b91c1c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: filter .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background: #2f344a;
    color: #fff; /* lz-navy */
}

    .btn-primary:hover {
        filter: brightness(0.95);
    }

.btn-outline-secondary {
    background: transparent;
    color: #2f344a;
    border-color: #2f344a;
}

    .btn-outline-secondary:hover {
        background: rgba(47,52,74,0.08);
    }

.btn-danger {
    background: #b91c1c;
    color: #fff;
}

    .btn-danger:hover {
        filter: brightness(0.95);
    }

.btn-link {
    background: transparent;
    border-color: transparent;
    color: #2563eb;
    padding-left: 0;
    padding-right: 0;
}

    .btn-link:hover {
        text-decoration: underline;
    }

/* Utility-ish */
.mt-2 {
    margin-top: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}
