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

body {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 30%, #10b981 70%, #059669 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Blur overlay untuk efek blur lembut pada background */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(96, 165, 250, 0.4) 0%, 
        rgba(59, 130, 246, 0.35) 30%,
        rgba(16, 185, 129, 0.3) 60%,
        rgba(5, 150, 105, 0.25) 100%
    );
    filter: blur(30px);
    z-index: 0;
    animation: gradientShift 15s ease infinite;
    opacity: 0.9;
}

/* Animated gradient background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Soft blurred gradient overlay */
body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(96, 165, 250, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(52, 211, 153, 0.15) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
    filter: blur(50px);
    animation: float 25s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.app-title {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.app-title h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.app-subtitle {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .material-icons {
    font-size: 50px;
    background: linear-gradient(135deg, #60a5fa 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.login-header h2 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.error-message {
    color: #ff3e3e;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group .material-icons {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #60a5fa 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 30%, #10b981 70%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

button:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 30%, #059669 70%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

button .material-icons {
    font-size: 20px;
}

.success-message {
    color: #28a745;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 5px;
}

.form-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.toggle-btn {
    flex: 1;
    padding: 10px;
    background: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.toggle-btn:hover {
    background: #e0e0e0;
    border-color: #3b82f6;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 30%, #10b981 70%, #059669 100%);
    color: white;
    border-color: #3b82f6;
}