/* ──────────────────────────────────────────────────
   ECOMAC — Custom Login Page
   ────────────────────────────────────────────────── */

/* Hide site header / footer / admin bar on login page */
body.ec-login-body .site-header,
body.ec-login-body .site-footer,
body.ec-login-body footer,
body.ec-login-body .ast-above-header-wrap,
body.ec-login-body .ast-below-header-wrap {
    display: none !important;
}

/* Full-screen background */
body.ec-login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #0b3d6c 0%, #155da0 50%, #1a7abf 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wrapper keeps the admin bar spacing if present */
.ec-login-wrap {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

/* Card */
.ec-login-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    padding: 2.75rem 2.5rem 2.25rem;
    width: min(420px, 100%);
    box-sizing: border-box;
}

/* Logo */
.ec-login-card__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.75rem;
}
.ec-login-card__logo img {
    max-height: 52px;
    width: auto;
}
.ec-login-card__logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0b3d6c;
    letter-spacing: -0.02em;
}

/* Title */
.ec-login-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0b3d6c;
    text-align: center;
    margin: 0 0 0.4rem;
    line-height: 1.3;
}

/* Subtitle */
.ec-login-card__sub {
    font-size: 0.875rem;
    color: #67768e;
    text-align: center;
    margin: 0 0 1.75rem;
    line-height: 1.5;
}

/* Error alert */
.ec-login-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #dc2626;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}
.ec-login-alert svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Form fields */
.ec-login-field {
    margin-bottom: 1rem;
}
.ec-login-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.375rem;
}
.ec-login-field input[type="email"],
.ec-login-field input[type="password"],
.ec-login-field input[type="text"] {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #d1d9e6;
    border-radius: 10px;
    font-size: 0.9375rem;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    font-family: inherit;
}
.ec-login-field input:focus {
    outline: none;
    border-color: #57bdff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(87, 189, 255, 0.18);
}

/* Submit button */
.ec-login-submit {
    width: 100%;
    padding: 0.75rem;
    background: #0b3d6c;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin-top: 0.375rem;
    font-family: inherit;
    letter-spacing: 0.01em;
}
.ec-login-submit:hover {
    background: #0d4d87;
}
.ec-login-submit:active {
    transform: scale(0.99);
}

/* Secondary links row */
.ec-login-links {
    margin-top: 1.1rem;
    text-align: center;
    font-size: 0.8125rem;
}
.ec-login-links a {
    color: #57bdff;
    text-decoration: none;
    font-weight: 500;
}
.ec-login-links a:hover {
    text-decoration: underline;
}

/* Divider */
.ec-login-divider {
    position: relative;
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    margin: 1.25rem 0;
}
.ec-login-divider::before,
.ec-login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 2rem);
    height: 1px;
    background: #e2e8f0;
}
.ec-login-divider::before { left: 0; }
.ec-login-divider::after  { right: 0; }

/* Request access note */
.ec-login-request {
    text-align: center;
    font-size: 0.8125rem;
    color: #67768e;
    line-height: 1.5;
}
.ec-login-request a {
    color: #0b3d6c;
    font-weight: 600;
    text-decoration: none;
}
.ec-login-request a:hover {
    text-decoration: underline;
}

/* Footer links */
.ec-login-card__footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.75rem;
    color: #94a3b8;
}
.ec-login-card__footer a {
    color: #94a3b8;
    text-decoration: none;
}
.ec-login-card__footer a:hover {
    text-decoration: underline;
}
.ec-login-card__footer span {
    margin: 0 0.3rem;
}
