/* Center the login container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px); /* Adjust based on your header/footer height */
    padding: 20px;
    direction: rtl;
}

/* Style the login box */
.login-box {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-title {
    color: var(--color-text-white);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%; /* Ensure full width */
}

.input-group label {
    color: var(--color-text);
    font-size: 0.9rem;
    display: flex;
}

.input-group input {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-white);
    padding: 10px 15px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%; /* Important: Make inputs fill their container */
    box-sizing: border-box; /* Ensure padding doesn't affect total width */
}

.input-group input::placeholder {
    color: var(--color-text-muted);
}

.input-group input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

/* Button Styles */
.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-bg); /* Dark text on light button for contrast, or change to white if preferred */
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #4b93e6; /* Slightly darker shade of accent */
}

/* Alert Styles (for errors) */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.alert-danger {
    background-color: rgba(248, 81, 73, 0.1);
    border-color: rgba(248, 81, 73, 0.4);
    color: #ff7b72;
}

.alert ul {
    margin: 0;
    padding-right: 20px; /* RTL padding */
}
