/* Login card styles matching signup UI */
.login-page-viewport {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.45);
    padding: 28px 28px 22px;
    direction: rtl;
}

.login-logo {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    background: #128a54;
    padding: 10px 14px;
    border-radius: 12px;
}

.login-logo img {
    max-height: 64px;
    max-width: 180px;
    display: block;
}

.login-logo img.type {
    max-height: 36px;
    max-width: 120px;
}

.login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    text-align: right;
}

.login-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    box-sizing: border-box;
}

.login-cta {
    margin-top: 10px;
}

.login-cta button {
    background: #128a54;
    color: #fff;
    border: none;
    padding: 12px 18px;
    width: 100%;
    border-radius: 8px;
    font-size: 16px;
    font-family: dana, sans-serif;
    font-weight: 500;
}

.login-links {
    text-align: center;
    margin-top: 18px;
}

.signup-link {
    color: #128a54;
    text-decoration: none;
    font-size: 14px;
}

.signup-link:hover {
    text-decoration: underline;
}

.home-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.home-link:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-card {
        width: 92%;
        padding: 20px;
    }
}

.error-message {
    background: #ffebee;
    color: #d32f2f;
    padding: 12px;
    border-radius: 6px;
    margin: 12px 0;
    text-align: center;
    border: 1px solid #ffcdd2;
}