* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0891b2, #0e7490);
}

/* Top Navigation */
.top-nav {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.nav-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-icon {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #0891b2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.brand-subtitle {
    font-size: 0.7rem;
    color: #64748b;
    letter-spacing: 0.5px;
}

.btn-home {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0891b2, #0e7490);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.3);
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.4);
    background: linear-gradient(135deg, #0e7490, #0891b2);
}

.btn-home svg {
    flex-shrink: 0;
}

.register-container {
    flex: 1;
    width: 100%;
    max-width: 450px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.register-box {
    background: white;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    width: 100%;
}

h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #1e293b;
}

.subtitle {
    text-align: center;
    color: #555;
    margin-bottom: 25px;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

textarea {
    height: 80px;
    resize: vertical;
}

.password-wrapper {
    position: relative;
}

.toggle {
    position: absolute;
    right: 12px;
    top: 12px;
    cursor: pointer;
    font-size: 18px;
}

.btn-register {
    width: 100%;
    padding: 12px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

.btn-register:hover {
    background: #059669;
}

.footer-text {
    text-align: center;
    margin-top: 15px;
    color: #555;
}

.footer-text a {
    color: #3b82f6;
    text-decoration: none;
}

.error-message {
    color: #dc2626; /* merah elegan */
    font-size: 13px;
    margin-top: -10px;   /* naik sedikit agar dekat input */
    margin-bottom: 12px; /* beri jarak ke elemen berikutnya */
    display: none;
    padding-left: 2px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

input.error, textarea.error {
    border-color: #dc2626;
    box-shadow: 0 0 4px rgba(220, 38, 38, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        gap: 15px;
        padding: 1rem;
        text-align: center;
    }

    .brand-icon {
        font-size: 1.3rem;
    }

    .brand-subtitle {
        font-size: 0.65rem;
    }

    .btn-home {
        width: 100%;
        justify-content: center;
    }

    .register-container {
        padding: 15px;
    }

    .register-box {
        padding: 25px 20px;
    }
}
