/* =========================================
   RUMAH API - REGISTER (CLASSIC BLUE + SVG)
   Style: Clean, Icon-Integrated, Responsive
   ========================================= */

:root {
    --bg-body: #f4f7fa;
    --bg-card: #ffffff;
    --primary-blue: #2563eb;
    --primary-hover: #1d4ed8;
    --accent-light: #eff6ff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    --radius-md: 16px;
    --radius-sm: 8px;
    --shadow-soft: 0 10px 40px -10px rgba(37, 99, 235, 0.15);
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    background-image: radial-gradient(circle at 50% 30%, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-main);
}

.container {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 40px;
    width: 100%;
    max-width: 480px; /* Sedikit lebih lebar untuk form register */
    animation: slideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo Area */
.logo-area {
    text-align: center;
    margin-bottom: 30px;
}
.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}
.logo-text span { color: var(--primary-blue); }
.subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Form Elements with Icons */
.form-group { margin-bottom: 18px; }

label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
}

/* SVG Icon Style in Label */
.label-icon {
    width: 18px;
    height: 18px;
    fill: var(--primary-blue);
    opacity: 0.8;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #f8fafc;
    color: var(--text-main);
}

input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Button */
button {
    width: 100%;
    padding: 14px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

button:active { transform: translateY(0); }

/* Messages */
.message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}
.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }

/* Footer Link */
.footer-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-link a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .container { padding: 30px 20px; }
    body { padding: 15px; }
}