* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Tahoma", "Arial", sans-serif;
    background-color: #f5f6f8;
    color: #1f2937;
    direction: rtl;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: #1d4ed8;
    color: #fff;
    padding: 16px 20px;
}

header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

header h1 {
    margin: 0;
    font-size: 1.3rem;
}

.container {
    width: min(960px, 100%);
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 1rem;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button,
.button {
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
}

button.primary,
.button.primary {
    background: #1d4ed8;
    color: #fff;
}

button.secondary,
.button.secondary {
    background: #e2e8f0;
    color: #1f2937;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.message {
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.95rem;
}

.message.success {
    background: #dcfce7;
    color: #166534;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
}

.message.info {
    background: #e0f2fe;
    color: #075985;
}

.login-wrapper {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    width: min(420px, 100%);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.placeholder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.placeholder-box {
    background: #f8fafc;
    border: 1px dashed #cbd5f5;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    color: #475569;
}

@media (max-width: 600px) {
    header .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    button,
    .button {
        width: 100%;
    }
}
