@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap');

:root {
    --primary-bg: #1a162d;
    --secondary-bg: #252140;
    --accent-purple: #825eff;
    --accent-pink: #f755a9;
    --text-primary: #ffffff;
    --text-secondary: #a3a1b3;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    margin: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: flex-end;
    padding-bottom: 2rem;
}

header nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 600;
    transition: color 0.3s;
}

header nav a:hover {
    color: var(--text-primary);
}

.container {
    background-color: var(--secondary-bg);
    padding: 2.5rem;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.icon-container {
    margin: 0 auto 1.5rem auto;
    width: 80px;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23825eff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.22 12.38a3.28 3.28 0 0 0-3.23 3.23c0 1.81 1.46 3.28 3.28 3.28s3.28-1.46 3.28-3.28c0-1.81-1.47-3.23-3.28-3.23Z'/%3E%3Cpath d='M17.78 12.38a3.28 3.28 0 0 0-3.28 3.23c0 1.81 1.46 3.28 3.28 3.28s3.28-1.46 3.28-3.28c0-1.81-1.47-3.23-3.28-3.23Z'/%3E%3Cpath d='M15.44 9.17a6.22 6.22 0 0 0-5.32-2.73h-1.63a6.22 6.22 0 0 0-5.41 2.87'/%3E%3Cpath d='M12.95 3.39c-1.28-1.28-2.95-2-4.71-2H7.98c-1.77 0-3.43.72-4.71 2L2 4.63l1.39 1.39'/%3E%3Cpath d='M17.78 6.02v2.81h2.81'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

h1 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
}

p {
    color: var(--text-secondary);
    margin: 0 0 2rem 0;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

input {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #363251;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(130, 94, 255, 0.25);
}

button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(130, 94, 255, 0.4);
}

/* Style untuk loading state */
button.loading {
    transform: none;
    box-shadow: none;
    cursor: wait;
    background: linear-gradient(90deg, #5340a3, #b8407c);
    color: transparent; /* Sembunyikan teks */
}

button.loading::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-top-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    animation: spin 1s linear infinite;
}

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

button:disabled {
    background-color: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.status-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: none; /* Hidden by default */
}

.status-message.success {
    background-color: #28a745;
    color: white;
    display: block;
}

.status-message.error {
    background-color: #dc3545;
    color: white;
    display: block;
}

.status-message.info {
    background-color: #17a2b8;
    color: white;
    display: block;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #f44336; /* Red */
    color: white;
    padding: 15px;
    border-radius: 5px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.notification.show {
    opacity: 1;
} 