/*
 * Styles for the sign-in and password pages (layouts/guest). These pages handle
 * passwords and reset tokens, so they load no third-party CSS or scripts: this file
 * covers the few Bootstrap-style classes they use; app.css adds the card itself.
 */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
}

h1, .h4 { margin-top: 0; font-size: 1.5rem; line-height: 1.2; }
a { color: #0d6efd; }
img { max-width: 100%; }

/* Utilities */
.fw-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-muted { color: #6c757d; }
.small, .text-sm { font-size: .875em; }
.font-medium { font-weight: 500; }
.text-green-600 { color: #16a34a; }
.text-decoration-none { text-decoration: none; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .25rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.me-1 { margin-inline-end: .25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: .5rem; }
.w-100 { width: 100%; }

/* Forms */
.form-label { display: inline-block; margin-bottom: .5rem; }

.form-control {
    display: block;
    width: 100%;
    padding: .5rem .75rem;
    font: inherit;
    color: #212529;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-control:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}
.form-control.is-invalid { border-color: #dc3545; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 .25rem rgba(220, 53, 69, .25); }

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: .25rem;
    font-size: .875em;
    color: #dc3545;
}
.is-invalid ~ .invalid-feedback { display: block; }

.form-check { display: flex; align-items: center; gap: .5rem; min-height: 1.5rem; }
.form-check-input { width: 1rem; height: 1rem; margin: 0; }
.form-check-label { cursor: pointer; }

/* Buttons */
.btn {
    display: inline-block;
    padding: .55rem .75rem;
    font: inherit;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: .5rem;
    transition: background-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.btn-primary { color: #fff; background-color: #0d6efd; border-color: #0d6efd; }
.btn-primary:hover { background-color: #0b5ed7; border-color: #0a58ca; }
.btn:focus-visible { outline: 0; box-shadow: 0 0 0 .25rem rgba(49, 132, 253, .5); }
