/* ===== LOGIN PAGE STYLES ===== */
/* פלטת צבעים - תואמת ללוגו ולדפים אחרים */
:root {
    --logo-green-dark: #0d4d44;
    --logo-red-pure: #d63031;
    --text-white: #ffffff;
    --bg-light: #f4f7f6;
    --shadow: 0 4px 15px rgba(0,0,0,0.15);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== CONTAINER ===== */
.auth-container {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 50px 45px;
    width: 100%;
    max-width: 460px;
    text-align: center;
}

/* ===== LOGO ===== */
.auth-logo {
    height: 110px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

/* ===== TITLE ===== */
.auth-container h1 {
    color: var(--logo-green-dark);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 30px 0;
}

/* ===== FORM ===== */
.auth-container form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ===== FORM GROUPS ===== */
.form-group {
    display: flex;
    flex-direction: column;
    text-align: right;
    margin-bottom: 18px;
}

.form-group label {
    color: var(--logo-green-dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.form-group input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    direction: rtl;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    background: #fafafa;
}

.form-group input:focus {
    border-color: var(--logo-green-dark);
    background: white;
    box-shadow: 0 0 0 3px rgba(13, 77, 68, 0.08);
}

.form-group input.input-error {
    border-color: var(--logo-red-pure);
    background: #fff8f8;
}

.form-group input.input-error:focus {
    box-shadow: 0 0 0 3px rgba(214, 48, 49, 0.08);
}

/* ===== ERROR MESSAGE ===== */
.error-msg {
    color: var(--logo-red-pure);
    font-size: 0.8rem;
    margin-top: 5px;
    min-height: 18px;
    text-align: right;
}

/* ===== SUBMIT BUTTON ===== */
.auth-container button[type="submit"] {
    background: var(--logo-green-dark);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s, transform 0.15s;
    width: 100%;
}

.auth-container button[type="submit"]:hover {
    background: var(--logo-red-pure);
    transform: translateY(-1px);
}

.auth-container button[type="submit"]:active {
    transform: translateY(0);
}

/* ===== BOTTOM LINK ===== */
.auth-container > p {
    margin-top: 25px;
    color: #666;
    font-size: 0.95rem;
}

.auth-container > p a {
    color: var(--logo-red-pure);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-container > p a:hover {
    color: var(--logo-green-dark);
    text-decoration: underline;
}

/* ===== SERVER ERROR BOX ===== */
.server-error {
    background: #fff0f0;
    border: 1px solid var(--logo-red-pure);
    border-radius: 10px;
    color: var(--logo-red-pure);
    padding: 12px 15px;
    font-size: 0.9rem;
    margin-bottom: 18px;
    text-align: center;
    display: none;
}

.server-error.visible {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 520px) {
    .auth-container {
        margin: 20px;
        padding: 35px 25px;
    }

    .auth-container h1 {
        font-size: 1.5rem;
    }
}
