/* Modern polish for gate login — keep original layout & branding */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
    --sina-navy: #0b2a5b;
    --sina-navy-deep: #071e42;
    --sina-lime: #c8e03a;
    --sina-yellow: #f2cb05;
    --sina-gold: #f8b642;
    --sina-pink: #f94b6e;
    --sina-pink-hover: #e6355a;
}

html.login-page,
html.login-page body {
    min-height: 100%;
    font-family: "Plus Jakarta Sans", Helvetica, Tahoma, sans-serif !important;
    background-color: var(--sina-navy-deep) !important;
    background-image:
        radial-gradient(ellipse 90% 60% at 12% 8%, rgba(200, 224, 58, 0.16), transparent 55%),
        radial-gradient(ellipse 70% 50% at 92% 88%, rgba(248, 182, 66, 0.12), transparent 50%),
        linear-gradient(160deg, #04152f 0%, #0b2a5b 42%, #0a3a72 72%, #071e42 100%) !important;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Rear-most OBE identity — behind the login card, not inside the form */
.gate-obe-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.gate-obe-net {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.32;
}

.gate-obe-watermark {
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%) rotate(-16deg);
    text-align: center;
    white-space: nowrap;
    user-select: none;
}

.gate-obe-watermark-nw {
    top: 16%;
    left: 16%;
    opacity: 0.55;
}

.gate-obe-watermark-nw .gate-obe-watermark-title {
    font-size: clamp(48px, 8vw, 120px);
}

.gate-obe-watermark-se {
    top: 84%;
    left: 84%;
    opacity: 0.5;
}

.gate-obe-watermark-se .gate-obe-watermark-title {
    font-size: clamp(48px, 8vw, 120px);
}

.gate-obe-watermark-title {
    display: block;
    font-size: clamp(96px, 20vw, 280px);
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 0.88;
    color: rgba(200, 224, 58, 0.3);
    text-shadow:
        0 0 48px rgba(200, 224, 58, 0.16),
        0 2px 0 rgba(7, 30, 66, 0.35);
}

.gate-obe-watermark-sub {
    display: block;
    margin-top: 0.28em;
    font-size: clamp(18px, 2.4vw, 36px);
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(248, 182, 66, 0.42);
}

.gate-obe-watermark-repeat {
    position: absolute;
    inset: -10%;
    background-image: repeating-linear-gradient(
        -18deg,
        transparent 0 86px,
        rgba(200, 224, 58, 0.04) 86px 87px
    );
}

.gate-obe-mark-tl,
.gate-obe-mark-br {
    position: absolute;
    font-size: clamp(28px, 4.2vw, 56px);
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.05;
    color: rgba(200, 224, 58, 0.22);
}

.gate-obe-mark-tl span,
.gate-obe-mark-br span {
    display: block;
}

.gate-obe-mark-tl small,
.gate-obe-mark-br small {
    display: block;
    margin-top: 4px;
    font-size: 0.38em;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(248, 182, 66, 0.38);
}

.gate-obe-mark-tl {
    top: 28px;
    left: 36px;
}

.gate-obe-mark-br {
    right: 36px;
    bottom: 28px;
}

html.login-page body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.14;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 56px 56px;
}

html.login-page body::after {
    content: none;
}

.gate-wrap {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    padding: 28px 12px 40px;
}

#main_cont.gate-card {
    min-height: auto !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 18px;
    overflow: hidden;
    background: transparent !important;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 2px 8px rgba(7, 30, 66, 0.2);
    animation: gateFadeUp 0.45s ease-out;
}

@keyframes gateFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#login {
    background: var(--sina-navy-deep) !important;
    margin: 0;
    padding: 0;
}

#login #logo {
    line-height: 0;
}

#login #logo img {
    width: 100%;
    height: auto;
    display: block;
}

.color-divider {
    min-height: 8px !important;
    background: linear-gradient(90deg, var(--sina-gold) 0%, var(--sina-lime) 50%, var(--sina-gold) 100%) !important;
}

#login_content.gate-form-panel {
    position: relative;
    max-width: none !important;
    margin: 0 !important;
    padding: 28px 28px 22px !important;
    background-color: var(--sina-navy) !important;
    background-image: none !important;
}

#login_content.gate-form-panel::before {
    content: none;
}

#login_content.gate-form-panel > * {
    position: relative;
    z-index: 1;
}

#login_content .title {
    border-right: 1px solid rgba(255, 255, 255, 0.18) !important;
    margin-bottom: 16px;
    padding-right: 18px;
}

#login_content .title hr {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin: 16px 0;
}

.gate-google {
    display: inline-block;
    margin-bottom: 4px;
}

.gate-play {
    display: inline-block;
    margin-top: 4px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.gate-play img {
    width: 148px;
    height: auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gate-play:hover img {
    transform: translateY(-1px);
    opacity: 0.92;
}

.teks-yellow label {
    color: var(--sina-yellow) !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

input.usrname,
input.pass {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
    min-width: 0 !important;
    width: 100%;
    height: 42px !important;
    padding: 8px 12px 8px 36px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

input.usrname {
    background: url("../img/login/usrname_bg2.png") no-repeat 10px center #fff !important;
}

input.pass {
    background: url("../img/login/pass_bg2.png") no-repeat 10px center #fff !important;
    margin-bottom: 6px !important;
}

input.usrname:focus,
input.pass:focus {
    outline: none;
    border-color: var(--sina-lime) !important;
    box-shadow: 0 0 0 3px rgba(200, 224, 58, 0.28) !important;
}

.forgotPass {
    color: var(--sina-yellow) !important;
    font-size: 12px;
    font-weight: 600;
    font-style: normal !important;
    text-decoration: none !important;
    display: inline-block;
    margin-top: 2px;
}

.forgotPass:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

#login_content input[type="submit"] {
    background: linear-gradient(180deg, #ff5f82 0%, var(--sina-pink) 100%) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 18px rgba(249, 75, 110, 0.35) !important;
    font: 700 13px "Plus Jakarta Sans", Helvetica, Arial, sans-serif !important;
    letter-spacing: 0.03em;
    padding: 10px 0 !important;
    width: 110px !important;
    height: 42px;
    margin-top: 28px !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

#login_content input[type="submit"]:hover {
    background: linear-gradient(180deg, #ff6f8e 0%, var(--sina-pink-hover) 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(249, 75, 110, 0.42) !important;
    cursor: pointer;
}

#login_content input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(249, 75, 110, 0.3) !important;
}

.remember {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 12px;
    font-weight: 500;
}

.info-bottom {
    font-size: 12px !important;
    line-height: 1.65 !important;
    margin-top: 10px !important;
    margin-bottom: 18px !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

.info-bottom .teks-yellow {
    color: var(--sina-yellow) !important;
}

.gate-links {
    border-right: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin: 4px 0 0 !important;
    padding: 16px 0 4px !important;
}

.gate-links > span {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.gate-links .btn {
    border: 0 !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    padding: 7px 12px !important;
    margin: 0 4px 8px 0;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.gate-links .btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.gate-links .btn-primary { background: #2563eb !important; }
.gate-links .btn-success { background: #16a34a !important; }
.gate-links .btn-warning { background: #d97706 !important; color: #fff !important; }
.gate-links .btn-danger { background: #dc2626 !important; }
.gate-links .btn-info { background: #0891b2 !important; }

.alert-custom {
    position: relative !important;
    z-index: 2;
    width: auto !important;
    left: auto !important;
    top: auto !important;
    margin: 0 0 16px !important;
    border-radius: 12px !important;
    border: 1px solid #fecaca !important;
    background: #fef2f2 !important;
    color: #b91c1c !important;
    font-size: 13px !important;
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.12);
}

@media (max-width: 991px) {
    .gate-obe-watermark-title {
        font-size: clamp(64px, 22vw, 140px);
    }

    .gate-obe-mark-tl,
    .gate-obe-mark-br {
        font-size: 22px;
    }

    #login_content .title {
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        padding-right: 0;
        padding-bottom: 16px;
        margin-bottom: 18px;
    }

    #login_content.gate-form-panel {
        padding: 22px 18px 18px !important;
    }

    #login_content input[type="submit"] {
        margin-top: 8px !important;
        width: 100% !important;
    }
}
