.ea-login-sec {
    min-height: 100vh;
    padding: 48px 18px;
    background:
        radial-gradient(circle at 15% 20%, rgba(201, 155, 63, 0.25), transparent 45%),
        linear-gradient(135deg, var(--ea-navy) 0%, var(--ea-navy-light) 60%, #1c5c8c 100%);
}

.ea-login-form {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.ea-login-card {
    background: #fff;
    border-radius: 16px;
    padding: 34px 28px;
    box-shadow: 0 24px 60px rgba(8, 24, 45, 0.35);
    text-align: center;
    animation: ea-rise .35s ease both;
}

@keyframes ea-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* University letterhead: a wide banner image, not a square/round emblem -
   contain it at full card width instead of forcing it into a badge shape. */
.ea-login-card .ea-crest {
    width: 100%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ea-login-card .ea-crest img {
    width: 100%;
    height: auto;
    max-height: 110px;
    object-fit: contain;
    display: block;
}

.ea-login-card h3 {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--ea-navy);
    margin-bottom: 20px;
}

.ea-login-card p.ea-sub {
    font-size: 13px;
    color: var(--ea-muted);
    margin-bottom: 22px;
}

.ea-login-card .form-group {
    text-align: left;
    margin-bottom: 16px;
}

/* Field label - was previously unstyled (falling back to the browser's
   default, oversized label text); this is the actual professional scale
   for the form. */
.ea-login-card .cus-lbll {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ea-text);
    margin-bottom: 6px;
    letter-spacing: .1px;
}

.ea-login-card .ea-help-text {
    display: block;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    margin-top: 6px;
}

/* Leave color to Bootstrap's .text-danger when both classes are present -
   loaded after bootstrap.min.css, so an unconditional color here would
   otherwise win the cascade tie and mute the error text. */
.ea-login-card .ea-help-text:not(.text-danger) {
    color: var(--ea-muted);
}

.ea-login-card .ea-input-icon {
    position: relative;
}

/* Class-based, not a tag selector: the Font Awesome build loaded on this
   page (font-awesome-v6.js) auto-replaces every <i> with an inline <svg>
   on load, but carries the original class list over onto that <svg>. A
   selector like ".ea-input-icon > i" stops matching the moment that
   replacement happens; ".field-icon" keeps matching either way. */
.ea-login-card .ea-input-icon .field-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: var(--ea-muted);
    font-size: 13px;
    pointer-events: none;
}

.ea-login-card .ea-input-icon .form-control {
    padding-left: 34px;
}

.ea-login-card .ea-input-icon.has-toggle .form-control {
    padding-right: 34px;
}

.ea-login-card .toggle-eye {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: var(--ea-muted);
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    display: inline-block;
}

.ea-login-card .toggle-eye .icon-hide {
    display: none;
}

.ea-login-card .toggle-eye.is-visible .icon-show {
    display: none;
}

.ea-login-card .toggle-eye.is-visible .icon-hide {
    display: inline-block;
}

.ea-login-card .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c9d1e0;
    border-radius: 8px;
    font-size: 14px;
    color: var(--ea-text);
}

.ea-login-card .form-control::placeholder {
    font-size: 13px;
    color: #9aa5b5;
}

.ea-login-card .form-control:focus {
    outline: none;
    border-color: var(--ea-navy-light);
    box-shadow: 0 0 0 3px rgba(20, 69, 111, 0.15);
}

.ea-captcha-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ea-captcha-row img {
    height: 42px;
    border-radius: 6px;
    border: 1px solid var(--ea-border);
}

.ea-captcha-refresh {
    border: 1px solid var(--ea-border);
    background: #fff;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--ea-navy);
}

.ea-login-submit {
    width: 100%;
    background: linear-gradient(90deg, var(--ea-navy), var(--ea-navy-light));
    color: #fff;
    border: none;
    padding: 12px 0;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .4px;
    box-shadow: 0 10px 20px rgba(13, 43, 78, 0.3);
}

.ea-login-submit:hover { color: #fff; transform: translateY(-1px); }

.ea-login-foot {
    margin-top: 16px;
    font-size: 11.5px;
    color: var(--ea-muted);
}
