* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
}

p {
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

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

.input-group input {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
    transition: 0.3s;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #999;
    pointer-events: none;
    transition: 0.3s;
}

/* Efek saat input fokus atau terisi */
.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -15px;
    font-size: 0.8rem;
    color: #764ba2;
}

.input-group input:focus {
    border-bottom: 2px solid #764ba2;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #764ba2;
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn:hover {
    background: #667eea;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.footer-links {
    margin-top: 20px;
    text-align: center;
    font-size: 0.8rem;
}

.footer-links a {
    color: #764ba2;
    text-decoration: none;
}

.footer-links span {
    display: block;
    margin-top: 10px;
}


/* register */
/* Tambahkan ini ke CSS yang sebelumnya */

.hidden {
    display: none;
}

.form-box h2 {
    margin-bottom: 25px;
    color: #444;
}

.switch-text {
    margin-top: 20px;
    font-size: 0.85rem;
}

.switch-text a {
    color: #764ba2;
    font-weight: bold;
    text-decoration: none;
}

.btn {
    width: 100%;
    padding: 12px;
    background: #764ba2;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.btn:hover {
    background: #667eea;
}
