/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ======================
   BACKGROUND
====================== */
body {
    height: 100vh;
    background: url('../images/gold-bg.jpg') no-repeat center center / cover;
    overflow: hidden;
}

/* overlay utama */
.login-wrapper {
    position: relative;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* GARIS EMAS MENYALA & BERGERAK */
.login-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 20%,
        rgba(212,175,55,0.15),
        transparent 80%
    );
    animation: goldMove 7s linear infinite;
}

/* glow lembut */
.login-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(212,175,55,0.08),
        transparent 60%
    );
    animation: goldPulse 6s ease-in-out infinite;
}

/* animasi garis */
@keyframes goldMove {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

/* animasi denyut cahaya */
@keyframes goldPulse {
    0%   { opacity: 0.4; }
    50%  { opacity: 0.8; }
    100% { opacity: 0.4; }
}

/* ======================
   LOGIN CARD
====================== */
.login-card {
    position: relative;
    width: 380px;
    background: linear-gradient(180deg, #111, #1b1b1b);
    border: 1px solid #d4af37;
    border-radius: 14px;
    padding: 35px;
    text-align: center;
    box-shadow:
        0 0 30px rgba(212,175,55,0.35),
        inset 0 0 20px rgba(212,175,55,0.08);
    z-index: 2;
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

/* ======================
   TITLE
====================== */
.title {
    color: #d4af37;
    font-weight: 600;
    letter-spacing: 3px;
}

.subtitle {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 25px;
}

/* ======================
   ALERT
====================== */
.alert {
    background: rgba(255, 0, 0, 0.15);
    color: #ffb3b3;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
}

/* ======================
   FORM INPUT
====================== */
.form-group {
    margin-bottom: 18px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    outline: none;
    transition: all 0.4s ease;
    animation: inputIdle 4s ease-in-out infinite;
}

/* glow idle */
@keyframes inputIdle {
    0%   { box-shadow: none; }
    50%  { box-shadow: 0 0 6px rgba(212,175,55,0.25); }
    100% { box-shadow: none; }
}

/* focus hidup */
.form-group input:focus {
    border-color: #d4af37;
    box-shadow:
        0 0 8px rgba(212,175,55,0.8),
        0 0 18px rgba(212,175,55,0.5);
    transform: translateY(-2px);
}

/* ======================
   BUTTON LOGIN
====================== */
.btn-login {
    position: relative;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #d4af37, #b8962e);
    border: none;
    border-radius: 6px;
    color: #000;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    animation: buttonPulse 3s ease-in-out infinite;
}

/* pulse emas */
@keyframes buttonPulse {
    0%   { box-shadow: 0 0 6px rgba(212,175,55,0.4); }
    50%  { box-shadow: 0 0 20px rgba(212,175,55,0.9); }
    100% { box-shadow: 0 0 6px rgba(212,175,55,0.4); }
}

/* sweep cahaya */
.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.6),
        transparent
    );
    transition: 0.6s;
}

.btn-login:hover::before {
    left: 120%;
}

/* ======================
   FORGOT PASSWORD
====================== */
.forgot {
    margin-top: 18px;
}

.forgot a {
    color: #d4af37;
    font-size: 13px;
    text-decoration: none;
}

.forgot a:hover {
    text-decoration: underline;
}
/* =========================
   CONTAINER LAYOUT
========================= */
.login-container {
    position: relative;
    width: 85%;
    max-width: 1200px;
    height: 520px;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    z-index: 2;
}

/* =========================
   LEFT SIDE (WELCOME)
========================= */
.login-left {
    flex: 1;
    padding: 60px;
    background: linear-gradient(
        135deg,
        rgba(212,175,55,0.15),
        rgba(0,0,0,0.85)
    );
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-left h1 {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.2;
}

.login-left h1 span {
    color: #d4af37;
}

.login-left p {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #ccc;
    max-width: 400px;
}

.brand-footer {
    margin-top: auto;
    font-size: 12px;
    color: #aaa;
}

/* =========================
   RIGHT SIDE (LOGIN)
========================= */
.login-right {
    flex: 1;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* override card supaya pas */
.login-card {
    width: 360px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        height: auto;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 40px 0;
    }
}


/* style otp */
/* ======================
   OTP INPUT FIXED
====================== */

.otp-form {
    width: 100%;
    margin-top: 10px;
}

.otp-inputs {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 kotak */
    gap: 10px;
    width: 100%;
    margin-bottom: 25px;
}

.otp-box {
    width: 100%;
    height: 52px;
    text-align: center;
    font-size: 22px;
    background: #0f0f0f;
    border: 1px solid #444;
    border-radius: 8px;
    color: #d4af37;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px rgba(212,175,55,0.1);
}

/* fokus */
.otp-box:focus {
    border-color: #d4af37;
    box-shadow:
        0 0 10px rgba(212,175,55,0.8),
        inset 0 0 10px rgba(212,175,55,0.2);
    transform: translateY(-2px);
}

/* animasi idle */
.otp-box {
    animation: otpPulse 3s ease-in-out infinite;
}

@keyframes otpPulse {
    0% { box-shadow: none; }
    50% { box-shadow: 0 0 6px rgba(212,175,55,0.3); }
    100% { box-shadow: none; }
}
