/* stylebaru.css - Modern Gaming Login Style (Pure CSS, No Tailwind) */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f0ff 0%, #e8e0ff 50%, #fce4ec 100%);
    position: relative;
    overflow-x: hidden;
}

/* Animated particles / gaming background - light theme */
.game-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(139, 92, 246, 0.25);
    border-radius: 50%;
    pointer-events: none;
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-20vh) translateX(40px) rotate(360deg); opacity: 0; }
}

/* Floating Icons */
.floating-icon {
    position: absolute;
    font-size: 4rem;
    opacity: 0.12;
    pointer-events: none;
    animation: floatIcon 8s ease-in-out infinite;
    color: #7c3aed;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Main Container */
.login-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 28rem;
    position: relative;
}

/* Tombol Close - Hanya Icon X */
.close-button {
    position: absolute;
    top: -3rem;
    right: 0;
    z-index: 20;
}

.close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: #475569;
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.close-btn i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.close-btn:hover i {
    transform: scale(1.1);
}

/* Tooltip untuk tombol close */
.close-btn {
    position: relative;
}

.close-btn::before {
    content: "Kembali ke Beranda";
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0.75rem;
    background: rgba(0,0,0,0.8);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
}

.close-btn::after {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0.25rem;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.close-btn:hover::before,
.close-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Responsive close button */
@media (max-width: 640px) {
    .close-button {
        top: -2.5rem;
        right: 0.5rem;
    }
    
    .close-btn {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 1rem;
    }
    
    .close-btn i {
        font-size: 1rem;
    }
    
    .close-btn::before {
        font-size: 0.65rem;
        margin-right: 0.5rem;
    }
}

/* Glassmorphism Card */
.login-card {
    border-radius: 1.5rem;
    box-shadow: 0 25px 45px rgba(0,0,0,0.08), 0 0 0 1px rgba(139, 92, 246, 0.15);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Card Header */
.card-header {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-header:hover {
    background: linear-gradient(135deg, #7c3aed, #db2777);
}

.header-bg-blur {
    position: absolute;
    right: -2rem;
    top: -2rem;
    width: 8rem;
    height: 8rem;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    filter: blur(2rem);
}

.header-bg-blur-bottom {
    position: absolute;
    left: -2rem;
    bottom: -2rem;
    width: 8rem;
    height: 8rem;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    filter: blur(2rem);
}

.logo-wrapper {
    position: relative;
    width: 5rem;
    height: 5rem;
    background: rgba(255,255,255,0.25);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-wrapper:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,0.35);
}

.logo-wrapper img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

/* Tooltip untuk logo */
.logo-wrapper {
    position: relative;
}

.logo-wrapper::after {
    content: "Klik untuk kembali ke beranda";
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.logo-wrapper:hover::after {
    opacity: 1;
    visibility: visible;
}

.card-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.025em;
}

.card-header p {
    color: rgba(255,255,255,0.9);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Card Body */
.card-body {
    padding: 1.5rem;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
}

@media (min-width: 768px) {
    .card-body {
        padding: 2rem;
    }
}

/* Alert Notifications */
.alert-notification {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-left: 4px solid;
}

.alert-warning {
    border-left-color: #f59e0b;
}

.alert-success {
    border-left-color: #10b981;
}

.alert-notification i {
    margin-top: 0.125rem;
}

.alert-warning i {
    color: #f59e0b;
}

.alert-success i {
    color: #10b981;
}

.alert-notification span {
    font-size: 0.875rem;
    color: #1e293b;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.form-group label i {
    color: #8b5cf6;
    margin-right: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

/* Forgot Password Link */
.forgot-link {
    text-align: right;
    margin-bottom: 1rem;
}

.forgot-link a {
    font-size: 0.875rem;
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link a:hover {
    color: #6d28d9;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.3);
}

/* Google Button */
.google-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.google-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.15);
    border-color: #8b5cf6;
}

.google-btn i {
    font-size: 1.25rem;
    color: #ef4444;
}

.google-btn span {
    color: #334155;
}

/* Divider */
.divider {
    position: relative;
    margin: 1.5rem 0;
}

.divider-line {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.divider-line hr {
    width: 100%;
    border: none;
    border-top: 1px solid #e2e8f0;
}

.divider-text {
    position: relative;
    display: flex;
    justify-content: center;
    font-size: 0.875rem;
}

.divider-text span {
    padding: 0 0.75rem;
    background: white;
    color: #64748b;
    border-radius: 9999px;
}

/* Register Link */
.register-link {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

.register-link p {
    color: #475569;
}

.register-link a {
    color: #8b5cf6;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #6d28d9;
}

/* Gaming Info Box */
.gaming-info {
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: #f5f0ff;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    color: #6b21a5;
    text-align: center;
    border: 1px solid #e9d5ff;
}

/* Quote Footer */
.quote-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(107, 33, 168, 0.7);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    background: #8b5cf6;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.back-to-top:hover {
    background: #6d28d9;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 640px) {
    .floating-icon {
        font-size: 2rem;
        opacity: 0.08;
    }
    
    .login-card {
        margin: 0 1rem;
    }
    
    .card-header {
        padding: 1.5rem 1rem;
    }
    
    .card-header h1 {
        font-size: 1.25rem;
    }
    
    .logo-wrapper::after {
        font-size: 0.6rem;
        white-space: nowrap;
    }
}

/* Animation for card */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card {
    animation: fadeIn 0.5s ease-out;
}

/* Input styling */
input:-webkit-autofill,
input:-webkit-autofill:focus {
    transition: background-color 0s 600000s, color 0s 600000s;
}