/* ────────────────────────────────────────────────────────
   Auth pages — login.blade.php & register.blade.php
   Uses brand tokens defined in app.css (:root block)
──────────────────────────────────────────────────────── */

/* auth-wrapper sits inside div.content — inherits the correct width.
   White background, centres the card both axes. */
.auth-wrapper {
    background-color: #fff;
    width: 100%;
    min-height: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 24px;
    box-sizing: border-box;
}

/* Card */
.auth-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(47, 84, 108, 0.12);
    padding: 20px 40px 20px;
    width: 100%;
    max-width: 480px;
}

/* Title */
.auth-title {
    color: var(--brand, #2f546c);
    font-size: 1.5rem;
    font-weight: 700 !important;
    margin-bottom: 24px;
    text-align: center;
    border-bottom: 2px solid var(--brand-bg, #e8f2f8);
    padding-bottom: 16px;
}

/* Alert banners */
.auth-alert {
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-wrap: wrap;
}
.auth-alert--danger {
    background-color: #fff3f3;
    border: 1px solid #f5c2c7;
    color: #842029;
}
.auth-alert--success {
    background-color: #edfaf1;
    border: 1px solid #badbcc;
    color: #0f5132;
}

/* Field group */
.auth-field {
    margin-bottom: 20px;
}

/* Label */
.auth-label {
    display: block;
    font-weight: 600 !important;
    font-size: 0.875rem;
    color: #3a5a70;
    margin-bottom: 6px;
}

.auth-required {
    color: #c0392b;
    font-weight: 700 !important;
}

/* Input */
.auth-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #c5d8e4;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background-color: #fafcfd;
}
.auth-input:focus {
    border-color: var(--brand, #2f546c) !important;
    box-shadow: 0 0 0 0.2rem rgba(47, 84, 108, 0.18) !important;
    background-color: #fff;
    outline: none;
}
.auth-input.is-invalid {
    border-color: #dc3545 !important;
}

/* Password wrapper (input + eye toggle) */
.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-input-wrap .auth-input {
    padding-right: 44px;
}
.auth-eye {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #6d9ab3;
    cursor: pointer;
    padding: 0 4px;
    font-size: 0.95rem;
    line-height: 1;
    transition: color 0.15s;
}
.auth-eye:hover {
    color: var(--brand, #2f546c);
}

/* Inline validation error */
.auth-error {
    font-size: 0.82rem;
    color: #dc3545;
    margin-top: 4px;
}

/* Hint text (e.g. * required fields) */
.auth-hint {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 20px;
    margin-top: -8px;
}

/* Submit button — inherits brand overrides from app.css */
.auth-btn {
    width: 100%;
    padding: 11px;
    font-size: 1rem;
    font-weight: 600 !important;
    border-radius: 6px;
    letter-spacing: 0.3px;
    margin-top: 4px;
}

/* Footer link area */
.auth-footer {
    margin-top: 24px;
    text-align: center;
    border-top: 1px solid #e8f2f8;
    padding-top: 18px;
}
.auth-footer p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}
.auth-footer a {
    color: var(--brand, #2f546c);
    font-weight: 600 !important;
    text-decoration: underline !important;
}
.auth-footer a:hover {
    color: var(--brand-dark, #1e3a4a);
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        padding: 28px 20px 24px;
    }
    .auth-title {
        font-size: 1.25rem;
    }
}
