:root {
    --primary: #00d2ff;
    --accent: #6a11cb;
    --bg-dark: #0f0c29;
    --glass: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #111827 0%, #030712 10%);
    color: var(--text);
    /* overflow: hidden; */
}

/* Animasi Background Bulatan */
.bg-animate {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent), var(--primary));
    filter: blur(80px);
    animation: move 20s infinite alternate;
    opacity: 0.3;
}

@keyframes move {
    from { transform: translate(-10%, -10%); }
    to { transform: translate(20%, 20%); }
}

/* Container Glassmorphism */
.container {
    width: 900px;
    height: 580px;
    background: var(--glass);
    /* backdrop-filter: blur(20px); */
    /* border: 1px solid rgba(255,255,255,0.08); */
    box-shadow: 0 0 50px rgba(99,102,241,0.3);
    border-radius: 30px;
    display: flex;
    /* box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5); */
    /* overflow: hidden; */
    animation: fadeIn 0.8s ease-out;
}

.mascot-section {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.mascot-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
}

.robot {
    width: 100%;
    height: 100%;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.glow-circle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, transparent 70%);
}

.form-section {
    flex: 1.2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-section.active {
    display: block;
}

.form-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 30px;
    padding: 5px;
    width: fit-content;
}

.form-toggle button {
    padding: 10px 25px;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
}

.form-toggle button.active {
    background: linear-gradient(45deg, var(--accent), var(--primary));
}

.form-box {
    /* display: none; */
    animation: slideIn 0.4s forwards;
}

.form-box.active {
    display: block;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

h2 { font-size: 1.8rem; margin-bottom: 10px; }
.desc { font-size: 0.85rem; color: #ccc; margin-bottom: 25px; }

.input-group { margin-bottom: 15px; }
label { display: block; font-size: 12pt; margin-bottom: 5px; }

input {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    outline: none;
}
.mydigitalid {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
    padding: 10px;

    /* 🔥 lebih solid background */
    background: linear-gradient(
        135deg,
        rgba(0, 210, 255, 0.15),
        rgba(106, 17, 203, 0.15)
    );

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;

    backdrop-filter: blur(12px);

    /* 🔥 efek timbul */
    box-shadow:
        0 4px 10px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);

    transition: all 0.3s ease;
    cursor: pointer;
}

.mydigitalid img {
    width: 160px; /* control size logo */
    height: auto;
    transition: 0.3s;
}

/* ✨ Hover effect */
.mydigitalid:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(0, 210, 255, 0.5);
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.2);
}

/* logo glow sikit */
.mydigitalid:hover img {
    filter: drop-shadow(0 0 10px rgba(0,210,255,0.6));
}

/* active click feel */
.mydigitalid:active {
    transform: scale(0.98);
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 14px;
    background: var(--primary);
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 768px) {
    .container { flex-direction: column; height: auto; margin: 20px; }
    .mascot-section { display: none; }
    .bg-animate { display: none; }
}
.mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 20px;
}

.mobile-logo img {
    width: 80px;
}

@media (max-width: 768px) {
    .mascot-section { display: none; }
    .mobile-logo { display: block; }
}
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #ccc;
    font-size: 12px;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.separator::before {
    margin-right: 10px;
}

.separator::after {
    margin-left: 10px;
}

.separator span {
    padding: 5px 12px;
    /* background: rgba(255,255,255,0.05); */
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.register-link {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: #aaa;
}

.link-register {
    margin-left: 6px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: 0.3s;
}

/* underline animation */
.link-register::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent), var(--primary));
    transition: 0.3s;
}

.link-register:hover::after {
    width: 100%;
}

/* hover glow */
.link-register:hover {
    color: #00d2ff;
    text-shadow: 0 0 8px rgba(0,210,255,0.6);
}
.forgot-wrapper {
    text-align: right;
    margin-top: -5px;
    margin-bottom: 10px;
}

.link-forgot {
    font-size: 13px;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    transition: 0.3s;
}

/* hover effect subtle */
.link-forgot:hover {
    color: var(--primary);
    text-shadow: 0 0 6px rgba(0,210,255,0.5);
}

/* optional underline animation */
.link-forgot::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 1px;
    left: 0;
    bottom: -2px;
    background: var(--primary);
    transition: 0.3s;
}

.link-forgot:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .form-section {
        padding: 20px 15px;
    }

    .input-group input {
        width: 100%;
        font-size: 16px;
        padding: 16px;
    }

    .btn-submit {
        width: 100%;
        font-size: 16px;
        padding: 16px;
    }

    .mydigitalid {
        width: 100%;
    }

    .separator {
        margin: 18px 0;
    }
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-eye {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: gray;
    font-size: 20px;
    transition: 0.3s;

    z-index: 5;
    opacity: 0.7;
}

.password-wrapper:hover .toggle-eye {
    opacity: 1;
}

.toggle-eye i {
    font-size: 20px;
    font-weight: 700;
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.85);
}
.toggle-eye:hover {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}
