@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #0f172a; /* Warna dasar gelap */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Canvas untuk partikel di background */
#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.login-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    padding: 20px;
    perspective: 1000px;
}

/* Efek Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #fff;
    transition: transform 0.3s ease;
}

.brand-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
}

.glass-panel h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.glass-panel p {
    font-size: 13px;
    color: #a0aec0;
    margin-bottom: 30px;
}

/* Floating Input Styling */
.input-container {
    position: relative;
    margin-bottom: 30px;
    text-align: left;
}

.input-container input {
    width: 100%;
    padding: 10px 0;
    font-size: 15px;
    color: #fff;
    border: none;
    background: transparent;
    outline: none;
}

.input-container label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 15px;
    color: #a0aec0;
    transition: 0.3s ease all;
    pointer-events: none;
}

.input-container label i {
    margin-right: 5px;
}

/* Animasi Label ke atas saat fokus */
.input-container input:focus ~ label,
.input-container input:valid ~ label {
    top: -20px;
    font-size: 12px;
    color: #4facfe;
}

.underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
}

.underline::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: #4facfe;
    transition: 0.3s ease all;
}

.input-container input:focus ~ .underline::before,
.input-container input:valid ~ .underline::before {
    width: 100%;
}

.toggle-pw {
    position: absolute;
    right: 0;
    top: 12px;
    color: #a0aec0;
    cursor: pointer;
    transition: 0.3s;
}

.toggle-pw:hover {
    color: #fff;
}

/* Checkbox & Links */
.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 13px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #a0aec0;
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid #a0aec0;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: 0.2s;
}

.custom-checkbox input:checked ~ .checkmark {
    background: #4facfe;
    border-color: #4facfe;
}

.custom-checkbox input:checked ~ .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    font-size: 10px;
    color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.forgot {
    color: #4facfe;
    text-decoration: none;
    transition: 0.3s;
}

.forgot:hover {
    color: #00f2fe;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* Efek Tombol Glowing */
.glow-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.6);
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.glow-btn:hover::before {
    left: 100%;
}