/* css/login.css - Volcanic Lords 'Royal Obsidian' Login Theme */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Outfit:wght@300;400;700;950&display=swap');

:root {
    --royal-bg: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
    --royal-gold: linear-gradient(135deg, #f1c40f 0%, #d4af37 50%, #8b6d05 100%);
    --royal-neon: 0 0 20px rgba(212, 175, 55, 0.4);
    --royal-glass: rgba(10, 10, 10, 0.75);
}

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--royal-bg);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    overflow: hidden;
}

/* 🌋 ANIMATED EMBERS BACKGROUND */
.royal-bg-vfx {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 100%, rgba(211, 84, 0, 0.15) 0%, transparent 60%);
    z-index: 1;
}

.royal-bg-vfx::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(1.5px 1.5px at 20% 30%, #fff, rgba(0,0,0,0)),
        radial-gradient(2.5px 2.5px at 40% 70%, #f1c40f, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50% 20%, #e67e22, rgba(0,0,0,0)),
        radial-gradient(2.5px 2.5px at 80% 50%, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 10% 80%, #f1c40f, rgba(0,0,0,0)),
        radial-gradient(2.5px 2.5px at 90% 10%, #fff, rgba(0,0,0,0));
    background-size: 200% 200%;
    animation: emberFloat 20s linear infinite;
    opacity: 0.3;
}

@keyframes emberFloat {
    from { background-position: 0 0; }
    to { background-position: -200% -200%; }
}

/* 💎 THE ROYAL CARD */
.login-card {
    position: relative;
    width: 92%;
    max-width: 400px;
    max-height: 92vh; /* TITAH: Cegah kebesaran di layar */
    background: var(--royal-glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    padding: 0;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(212, 175, 55, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 10;
    animation: slideInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
    transform: translateY(30px);
    opacity: 0;
    overflow-y: auto; 
}

@keyframes slideInUp {
    to { transform: translateY(0); opacity: 1; }
}

.login-header-royal {
    padding: 35px 20px 5px; /* Lebih mampat */
    text-align: center;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    position: relative;
}

.login-header-royal h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem; /* Lebih kecil agar muat */
    font-weight: 950;
    margin: 0;
    background: linear-gradient(180deg, #fff 0%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 4px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.login-header-royal p {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-top: 5px;
    opacity: 0.8;
}

.login-body-royal {
    padding: 10px 35px 35px; /* Lebih mampat */
    display: flex;
    flex-direction: column;
    gap: 15px; /* Sela lebih kecil */
}

/* 🏰 CUSTOM INPUTS */
.input-group-royal {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group-royal label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1.5px;
    margin-left: 5px;
}

.input-royal {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 16px 20px !important;
    color: #fff !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.95rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.input-royal:focus {
    border-color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.08) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2), inset 0 0 10px rgba(212, 175, 55, 0.1) !important;
    transform: translateY(-1px);
}

.select-royal {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23d4af37'%3E%3Cpath d='M0 3l6 6 6-6z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 20px center !important;
}

/* 👑 SUPREME BUTTONS */
.btn-royal-main {
    background: var(--royal-gold) !important;
    border: none !important;
    border-radius: 18px !important;
    padding: 16px !important;
    color: #000 !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 950 !important;
    font-size: 1rem !important;
    letter-spacing: 2.5px !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.2) !important;
    width: 100% !important;
    margin-top: 10px !important;
}

.btn-royal-main:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.5) !important;
}

.btn-royal-secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    padding: 12px !important;
    color: #ccc !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.btn-royal-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

/* 📱 SOCIAL ADAPTERS */
.btn-google-royal {
    background: #fff !important;
    color: #333 !important;
    padding: 15px !important;
    border-radius: 16px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 950 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.btn-google-royal:hover {
    background: #f8f9fa !important;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
}

.divider-royal {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 10px 0;
}

.divider-royal::before, .divider-royal::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.divider-royal span {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    color: #555;
    font-weight: 900;
    letter-spacing: 2px;
}

.footer-toggle-royal {
    text-align: center;
    margin-top: 15px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: #777;
}

.footer-toggle-royal a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 950;
    transition: all 0.3s ease;
}

.footer-toggle-royal a:hover {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
