
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=TASA+Explorer:wght@400..800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: #000;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Dot pattern background */
.dot-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.dot-pattern canvas {
    width: 100%;
    height: 100%;
}

/* Radial overlay gelap di pinggir */
.radial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(
        ellipse closest-side,
        transparent 50%,
        rgba(15, 15, 15, 0.7) 90%,
        rgba(15, 15, 15, 1) 100%
    );
    z-index: 2;
}

.radial-overlay-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 30%;
    background: radial-gradient(
        ellipse closest-side,
        transparent 0%,
        rgba(244, 255, 250, 0.5) 0%,
        rgba(70, 70, 70, 0.7) 70%,
        rgba(15, 15, 15, 1) 100%
    );
    z-index: 1;
}

/* Container Main */
.container-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex: 1;
    padding: 30px 0;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logo-icon {
    width: 24px;
    height: 24px;
}

.logo-text {
    font-family: "TASA Explorer", sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.reset-container {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.reset-header {
    width: 48px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin: 0 auto 32px;
}

h1 {
    font-size: 30px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
}

label {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
}

input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    outline: none;
}

input::placeholder {
    color: #666;
}

input:hover {
    border-color: #0bbb95;
}

input:focus {
    border-color: #0eddb0;
}

input.error {
    border-color: #ef4444;
}

input:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    transition: background-color 5000s ease-in-out 0s;
}

.error-message {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.error-message.show {
    display: block;
}

.reset-btn {
    width: 100%;
    padding: 14px;
    background: #0b9779;
    border: 1px solid #0bbb95;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.reset-btn:hover {
    background: #0a775f;
}

.reset-btn:active {
    transform: translateY(1px);
}

.reset-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.success-message {
    text-align: center;
    font-size: 14px;
    color: #10b981;
    line-height: 3.3;
    display: none;
}

.success-message.show {
    display: block;
}

.back-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
}

.back-link a {
    color: #888;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.1s;
}

.back-link a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    gap: 6px;
}

.footer-icon {
    width: 16px;
    height: 16px;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    height: 1px;
    width: 0%;
    background: #0bbb95;
    z-index: 200;
    transition: width 0.4s ease;
}

/* ===== Animasi Muncul Dari Bawah (blur -> clear) ===== */
.fade-up {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(6px);
    transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Saat aktif (setelah load) */
.fade-up.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

#deviceBlocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #111;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
    z-index: 999999;
    padding: 20px;
}
