* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #002b1d;
    background-image:
        radial-gradient(circle at 15% 12%, rgba(212, 175, 55, 0.16), transparent 42%),
        radial-gradient(circle at 88% 85%, rgba(212, 175, 55, 0.12), transparent 45%),
        linear-gradient(160deg, #003c28 0%, #001a11 100%);
    color: #1f2d28;
    position: relative;
    overflow-x: hidden;
}

/* Bingkai emas ala sertifikat */
.frame {
    position: fixed;
    inset: 18px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    pointer-events: none;
    z-index: 1;
}
.frame::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(212, 175, 55, 0.16);
}
.frame .corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(212, 175, 55, 0.8);
}
.frame .c-tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame .c-tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.frame .c-bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.frame .c-br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.login-shell {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 2;
}

.login-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.card-accent {
    height: 5px;
    background: linear-gradient(90deg, #d4af37, #f0d878, #b8912b);
}

.card-body { padding: 34px 34px 30px; }

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
}

.brand-icon {
    width: 50px;
    height: 50px;
    border-radius: 11px;
    background: #002b1d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.5);
}
.brand-icon svg { width: 27px; height: 27px; fill: #d4af37; }

.brand-title { font-size: 20px; font-weight: 700; color: #002b1d; letter-spacing: 0.2px; }
.brand-sub { font-size: 12.5px; color: #7b8b84; margin-top: 2px; }

.login-heading { font-size: 15.5px; font-weight: 700; color: #243430; margin-bottom: 4px; }
.login-desc { font-size: 13px; color: #7b8b84; margin-bottom: 20px; line-height: 1.5; }

.field { margin-bottom: 16px; position: relative; }

.field label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #55675f;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    height: 45px;
    padding: 0 14px;
    border: 1.5px solid #d8e0dc;
    border-radius: 9px;
    font-size: 14.5px;
    color: #1f2d28;
    background: #fbfcfb;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field input:focus {
    outline: none;
    border-color: #00695c;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 105, 92, 0.13);
}
.field input::placeholder { color: #aebbb5; }

.field.has-toggle input { padding-right: 46px; }

.toggle-pass {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 34px;
    height: 33px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
}
.toggle-pass:hover { background: #eef3f0; }
.toggle-pass svg { width: 19px; height: 19px; fill: #7b8b84; }

.alert {
    display: none;
    background: #fdecea;
    border: 1px solid #f5c6c0;
    border-left: 4px solid #c62828;
    color: #a33a2f;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 13px;
    border-radius: 8px;
    margin-bottom: 16px;
    line-height: 1.45;
}
.alert.show { display: block; }

.btn-login {
    width: 100%;
    height: 47px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, #00695c, #003d2b);
    color: #f5e6b8;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    margin-top: 6px;
    box-shadow: 0 8px 20px rgba(0, 61, 43, 0.28);
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 11px 24px rgba(0, 61, 43, 0.34); }
.btn-login:active { transform: translateY(0); }
.btn-login:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.card-foot {
    padding: 15px 34px;
    background: #f4f7f5;
    border-top: 1px solid #e4ebe7;
    font-size: 12px;
    color: #879690;
    text-align: center;
    line-height: 1.55;
}
.card-foot strong { color: #002b1d; }

.login-note {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.3px;
}

@media (max-width: 480px) {
    .card-body { padding: 26px 22px; }
    .card-foot { padding: 14px 22px; }
    .frame { inset: 10px; }
}
