:root{ --ewa-brand:#013B57; --ewa-muted:#D9EFFE; --ewa-bg:#FFFFFF; --ewa-radius:30px; }

.ewa-modal-overlay {
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    z-index: 100;
    padding: 20px;
    margin: 0;
    display: none;
}

.ewa-modal {
    width: 100%;
    max-width: 500px;
    background: var(--ewa-bg);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(1,59,87,0.12);
    font-family: "Roboto", Sans-serif;
    overflow: hidden;
}

.ewa-modal-header {
    padding: 24px 28px;
    border-bottom: 2px solid rgba(1,59,87,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ewa-modal-title {
    margin: 0;
    color: var(--ewa-brand);
    font-size: 20px;
    font-weight: 700;
}

.ewa-modal-close {
    background: transparent;
    border: 0;
    font-size: 20px;
    color: var(--ewa-brand);
    cursor: pointer;
}

.ewa-modal-body { padding: 24px 28px; }

.ewa-field { margin-bottom: 12px; }
.ewa-field label {
    display: block;
    font-size: 14px;
    color: var(--ewa-brand);
    font-weight: 600;
    margin-bottom: 6px;
}

.ewa-field input[type="email"],
.ewa-field input[type="text"],
.ewa-field input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--ewa-muted);
    background: #F9FCFF;
    font-size: 15px;
    color: var(--ewa-brand);
    box-sizing: border-box;
}

.ewa-note { font-size: 13px; color: #555; margin-top: 8px; }
.ewa-login-error { color: #b41f1f; font-size: 14px; margin: 10px 0; display:none; }

.ewa-login-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
    justify-content: center;
}

.ewa-btn {
    border-radius: var(--ewa-radius);
    padding: 12px 22px;
    cursor: pointer;
    border: 0;
    font-weight: 700;
    font-size: 15px;
    transition: all .3s;
}

.ewa-btn-primary {
    background: var(--ewa-brand);
    color: var(--ewa-bg);
}

.ewa-btn-primary:hover {
    background: var(--ewa-muted);
    color: var(--ewa-brand);
    background-image: linear-gradient(180deg, #94BCD7 0%, #94BCD7 100%);
}

.ewa-btn-ghost {
    background: var(--ewa-bg);
    color: var(--ewa-brand);
    border: 1px solid var(--ewa-brand);
}

.ewa-btn-ghost:hover {
    background: var(--ewa-brand);
    color: var(--ewa-bg);
    border-color: var(--ewa-brand);
}

@media (max-width:480px) {
    .ewa-modal { max-width: 90%; border-radius: 12px; }
    .ewa-modal-title { font-size: 20px; }
    .ewa-modal-body { padding: 20px; }
}

.ewa-forgot-wrap {
    text-align: center;
    margin-top: 16px;
}

.ewa-forgot-link {
    background: none;
    border: none;
    color: var(--ewa-brand);
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.3s ease;
}

.ewa-forgot-link:hover {
    color: #0077aa;
    text-decoration: underline;
}
