:root {
    --portal-green: #062f27;
    --portal-green-dark: #03221d;
    --portal-gold: #d6a23d;
    --portal-gold-light: #f0c86b;
    --portal-ink: #17231f;
}

* { box-sizing: border-box; }

body { margin: 0; background: var(--portal-green-dark); }

.ek-portal-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
    background-image: var(--portal-image);
    background-size: cover;
    background-position: center;
    font-family: Inter, Arial, sans-serif;
}

.ek-portal-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(2,31,26,.98) 0%, rgba(3,37,31,.93) 46%, rgba(3,38,32,.68) 100%);
}

.ek-portal-header,
.ek-portal-shell,
.ek-portal-footer { position: relative; z-index: 1; }

.ek-portal-header {
    width: min(1180px, calc(100% - 48px));
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    border-bottom: 1px solid rgba(240,200,107,.2);
}

.ek-portal-brand .ek-brand-logo {
    width: 120px;
    height: auto;
    max-width: none;
    transform: translateY(-9px);
    filter: none;
}
.ek-portal-brand { display: block; width: 165px; height: 66px; overflow: hidden; }

.ek-back-home {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255,255,255,.8) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.ek-back-home:hover { color: var(--portal-gold-light) !important; }

.ek-portal-shell {
    width: min(1180px, calc(100% - 48px));
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(380px, .75fr);
    gap: 80px;
    align-items: center;
    margin: 0 auto;
    padding: 55px 0;
}

.ek-portal-intro { max-width: 660px; }
.ek-portal-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--portal-gold-light); font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.ek-portal-intro h1 { margin: 0 0 20px; color: #fff; font-family: Georgia, serif; font-size: clamp(44px, 5vw, 72px); line-height: 1.02; letter-spacing: -.03em; }
.ek-portal-intro h1 em { color: var(--portal-gold-light); font-style: normal; }
.ek-portal-intro > p { max-width: 590px; margin-bottom: 30px; color: rgba(255,255,255,.76); font-size: 17px; line-height: 1.78; }

.ek-portal-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ek-portal-benefits > div { display: flex; gap: 11px; padding: 15px 13px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 9px; backdrop-filter: blur(8px); }
.ek-portal-benefits i { color: var(--portal-gold-light); font-size: 21px; }
.ek-portal-benefits span { display: flex; flex-direction: column; color: rgba(255,255,255,.62); font-size: 12px; line-height: 1.48; }
.ek-portal-benefits b { color: #fff; font-size: 13px; }

.ek-login-card {
    padding: 34px;
    color: var(--portal-ink);
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 18px;
    box-shadow: 0 26px 70px rgba(0,0,0,.3);
}

.ek-login-card-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.ek-login-icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--portal-green); background: linear-gradient(135deg, var(--portal-gold-light), var(--portal-gold)); border-radius: 13px; font-size: 21px; }
.ek-login-card-heading p { margin: 0 0 2px; color: #9c7528; font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.ek-login-card-heading h2 { margin: 0; color: var(--portal-green-dark); font-family: Georgia, serif; font-size: 29px; }
.ek-login-welcome { margin: 0 0 24px; color: #68726f; font-size: 14px; line-height: 1.58; }

.ek-login-form > label { display: block; margin: 0 0 7px; color: #37423f; font-size: 12px; font-weight: 800; }
.ek-field { position: relative; margin-bottom: 17px; }
.ek-field > i { position: absolute; top: 50%; left: 15px; z-index: 2; color: #9b7a38; transform: translateY(-50%); }
.ek-field .form-control { height: 50px; padding: 0 46px 0 42px; color: #17231f; background: #f7f5ef; border: 1px solid #e1ddd3; border-radius: 8px !important; font-size: 14px; box-shadow: none; }
.ek-field .form-control:focus { background: #fff; border-color: var(--portal-gold); box-shadow: 0 0 0 3px rgba(214,162,61,.14); }
.ek-password-toggle { position: absolute; top: 50%; right: 12px; z-index: 2; width: 28px; height: 28px; padding: 3px; background: transparent; border: 0; transform: translateY(-50%); }
.ek-password-toggle img { width: 18px; height: 18px; }

.ek-login-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 3px 0 20px; }
.ek-remember { display: flex; align-items: center; gap: 7px; color: #596460; font-size: 12px; cursor: pointer; }
.ek-remember input { accent-color: var(--portal-green); }
.ek-login-options > a { color: #9c7528; font-size: 12px; font-weight: 800; text-decoration: none; }

.ek-login-submit { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #fff; background: linear-gradient(135deg, #0b4b3d, var(--portal-green-dark)); border: 0; border-radius: 8px; font-size: 14px; font-weight: 900; box-shadow: 0 12px 25px rgba(3,34,29,.2); }
.ek-login-submit,
.ek-login-submit span,
.ek-login-submit i { color: #fff !important; }
.ek-login-submit:hover { background: linear-gradient(135deg, var(--portal-green-dark), #0b4b3d); }
.ek-login-help { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 18px; margin-top: 20px; border-top: 1px solid #ece7dc; }
.ek-login-help > i { color: #168b52; font-size: 22px; }
.ek-login-help span { display: flex; flex-direction: column; color: #7a8581; font-size: 11px; }
.ek-login-help a { color: var(--portal-green); font-size: 12px; font-weight: 900; text-decoration: none; }

.ek-portal-footer { width: min(1180px, calc(100% - 48px)); min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto; color: rgba(255,255,255,.55); border-top: 1px solid rgba(240,200,107,.18); font-size: 12px; letter-spacing: .04em; }
.ek-portal-footer span { display: flex; align-items: center; gap: 7px; }
.ek-portal-footer i { color: var(--portal-gold); }

@media (max-width: 991px) {
    .ek-portal-shell { grid-template-columns: 1fr; gap: 38px; max-width: 680px; }
    .ek-portal-intro { text-align: center; margin: auto; }
    .ek-portal-intro > p { margin-left: auto; margin-right: auto; }
    .ek-portal-benefits { text-align: left; }
    .ek-login-card { width: min(460px, 100%); margin: auto; }
}

@media (max-width: 600px) {
    .ek-portal-header, .ek-portal-shell, .ek-portal-footer { width: min(100% - 28px, 1180px); }
    .ek-portal-header { min-height: 72px; }
    .ek-portal-brand { width: 135px; height: 54px; }
    .ek-portal-brand .ek-brand-logo { width: 105px; transform: translateY(-7px); }
    .ek-back-home { font-size: 0; }
    .ek-back-home i { font-size: 17px; }
    .ek-portal-shell { padding: 34px 0; }
    .ek-portal-intro h1 { font-size: 44px; }
    .ek-portal-benefits { grid-template-columns: 1fr; }
    .ek-login-card { padding: 25px 20px; }
    .ek-login-options { align-items: flex-start; flex-direction: column; }
    .ek-portal-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 14px 0; }
}
