* { box-sizing: border-box; }
.header, .header *, .btn-submit, .resend-link, .help-text, .alert, .input-group label,
#form-register, #form-login, #form-otp { user-select: none; -webkit-user-select: none; }
#form-register input, #form-login input, #form-otp input { user-select: text; -webkit-user-select: text; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f2044 0%, #1a3a6e 50%, #2563eb 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

/* Dekorasi background */
body::before {
    content: '';
    position: fixed;
    top: -80px; left: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    bottom: -100px; right: -60px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.login-container {
    background: #ffffff;
    padding: 40px 36px 36px;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    width: 100%;
    max-width: 420px;
    position: relative;
    animation: fadeUp 0.4s ease;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Header / Brand */
.header {
    text-align: center;
    margin-bottom: 28px;
}
.brand-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    margin: 0 auto 14px;
    box-shadow: 0 4px 16px rgba(37,99,235,0.25);
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #2563eb;
}
.header h2 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.3px;
}
.header p {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

/* Divider */
.header::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 2px;
    margin: 14px auto 0;
}

/* Input */
.input-group {
    margin-bottom: 18px;
    position: relative;
}
.input-group label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
}
.input-group input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input-group input:focus {
    border-color: #2563eb;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.input-group i.icon {
    position: absolute;
    left: 14px;
    top: 38px;
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.2s;
}
.input-group:focus-within i.icon {
    color: #2563eb;
}
.input-group.input-error input {
    border-color: #e53e3e;
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(229,62,62,0.12);
}
.input-group.input-error i.icon {
    color: #e53e3e;
}
.input-group.input-error label {
    color: #e53e3e;
}

/* Button */
.btn-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 14px rgba(37,99,235,0.35);
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    margin-top: 8px;
}
.btn-submit:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 6px 18px rgba(37,99,235,0.45);
    transform: translateY(-1px);
}
.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.btn-submit i { margin-left: 6px; }

/* Alert */
.hidden { display: none !important; }
.alert {
    padding: 11px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    text-align: center;
    font-weight: 500;
}
.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.alert-error {
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}

/* OTP */
.help-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #94a3b8;
}
.resend-link {
    text-align: center;
    margin-top: 16px;
}
.resend-link a {
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.resend-link a:hover { text-decoration: underline; }

/* OTP Boxes */
.otp-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 8px;
}
.otp-boxes .otp-digit {
    width: 48px;
    height: 56px;
    padding: 0;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #000000;
    -webkit-text-fill-color: #000000;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    caret-color: #2563eb;
}
.otp-boxes .otp-digit:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.otp-boxes .otp-digit.filled {
    border-color: #2563eb;
    background: #eff6ff;
}