:root {
    --ma-gold: #d4af37;
    --ma-gold-light: #f9e076;
    --ma-gold-dark: #b8860b;
    --ma-bg-dark: #0a0a0f;
    --ma-bg-card: rgba(15, 15, 20, 0.85);
    --ma-text: #f8f9fa;
    --ma-text-secondary: #9ca3af;
    --ma-border: rgba(212, 175, 55, 0.2);
    --ma-font-serif: 'Cormorant Garamond', 'Playfair Display', serif;
    --ma-font-sans: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.ma-body {
    font-family: var(--ma-font-sans);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--ma-bg-dark);
    padding: 1rem;
}

.ma-body::before {
    content: '';
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../images/page/login-client.jpg');
    background-size: cover; background-position: center; background-attachment: fixed;
    opacity: 0.25; z-index: 0;
}

.ma-body::after {
    content: '';
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(26, 21, 32, 0.3) 0%, rgba(10, 10, 15, 0.85) 100%);
    z-index: 0;
}

.ma-container {
    max-width: 28rem; width: 100%; position: relative; z-index: 10;
    animation: maFadeIn 0.6s ease-out;
}

@keyframes maFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ma-logo { text-align: center; margin-bottom: 2rem; }
.ma-logo-ring {
    width: 5rem; height: 5rem; margin: 0 auto 1rem; border-radius: 50%;
    background: linear-gradient(135deg, var(--ma-gold), var(--ma-gold-light), var(--ma-gold-dark));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}
.ma-logo-ring span { font-family: var(--ma-font-serif); font-size: 2rem; font-weight: 700; color: #0a0a0a; }
.ma-logo-title {
    font-family: var(--ma-font-serif); font-size: 2.2rem; font-weight: 700;
    background: linear-gradient(to right, #facc15, #f59e0b, #facc15);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ma-logo-subtitle {
    color: var(--ma-text-secondary); font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 2px; margin-top: 0.25rem;
}

.ma-card {
    background: var(--ma-bg-card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 1.5rem; padding: 2rem; border: 1px solid var(--ma-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5); margin-bottom: 1rem;
}
.ma-card-title { font-size: 1.5rem; font-weight: 700; color: var(--ma-text); text-align: center; margin-bottom: 0.5rem; }
.ma-card-subtitle { color: var(--ma-text-secondary); font-size: 0.875rem; text-align: center; margin-bottom: 1.5rem; }

.ma-form-group { margin-bottom: 1.25rem; }
.ma-label { display: block; color: #d1d5db; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; }
.ma-input-wrapper { position: relative; }
.ma-input-icon {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    color: #6b7280; transition: color 0.3s ease;
}
.ma-input-wrapper:focus-within .ma-input-icon { color: var(--ma-gold); }
.ma-input {
    width: 100%; padding: 0.875rem 1rem 0.875rem 3rem;
    background: rgba(17, 24, 39, 0.5); border: 1px solid #374151; border-radius: 0.75rem;
    color: var(--ma-text); font-size: 0.9rem; outline: none; transition: all 0.3s ease;
}
.ma-input::placeholder { color: #6b7280; }
.ma-input:focus { border-color: var(--ma-gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15); }
.ma-input-has-button { padding-right: 3rem; }
.ma-input-btn {
    position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #6b7280; cursor: pointer; transition: color 0.3s ease;
}
.ma-input-btn:hover { color: var(--ma-gold); }

.ma-checkbox-group { display: flex; align-items: center; gap: 0.5rem; }
.ma-checkbox { width: 1rem; height: 1rem; border-radius: 0.25rem; border: 1px solid #4b5563; accent-color: var(--ma-gold); cursor: pointer; }
.ma-checkbox-label { color: #9ca3af; font-size: 0.875rem; cursor: pointer; }

.ma-btn {
    width: 100%; padding: 0.875rem 1rem; border-radius: 0.75rem; font-weight: 700;
    font-size: 0.95rem; cursor: pointer; transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem; border: none;
}
.ma-btn-gold { background: linear-gradient(135deg, var(--ma-gold), var(--ma-gold-dark)); color: #0a0a0a; }
.ma-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3); }
.ma-btn-red { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.ma-btn-red:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3); }
.ma-btn-orange { background: linear-gradient(135deg, #f59e0b, #d97706); color: #0a0a0a; }
.ma-btn-orange:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3); }
.ma-btn-outline { background: #374151; color: #fff; }
.ma-btn-outline:hover { background: #4b5563; }
.ma-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none !important; }

.ma-link { color: var(--ma-gold); font-size: 0.875rem; text-decoration: none; transition: color 0.3s ease; }
.ma-link:hover { color: #fbbf24; }
.ma-link-gray { color: #9ca3af; text-decoration: none; font-size: 0.875rem; transition: color 0.3s ease; }
.ma-link-gray:hover { color: var(--ma-gold); }

.ma-alert {
    padding: 0.75rem 1rem; border-radius: 0.75rem; margin-bottom: 1rem;
    font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem;
}
.ma-alert-success { background: rgba(34, 197, 94, 0.1); border-left: 4px solid #22c55e; color: #4ade80; }
.ma-alert-error { background: rgba(239, 68, 68, 0.1); border-left: 4px solid #ef4444; color: #f87171; }
.ma-alert-warning { background: rgba(234, 179, 8, 0.1); border-left: 4px solid #eab308; color: #facc15; }
.ma-alert-info { background: rgba(59, 130, 246, 0.1); border-left: 4px solid #3b82f6; color: #93c5fd; }

.ma-divider { position: relative; margin: 1.5rem 0; display: flex; align-items: center; justify-content: center; }
.ma-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #374151; }
.ma-divider span { position: relative; padding: 0 0.75rem; background: var(--ma-bg-card); color: #6b7280; font-size: 0.875rem; }

.ma-options-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.5rem; }

.ma-password-strength { height: 4px; border-radius: 2px; background: #374151; margin-top: 0.5rem; overflow: hidden; }
.ma-password-strength-bar { height: 100%; width: 0; border-radius: 2px; transition: all 0.3s ease; }
.ma-password-strength-text { font-size: 0.75rem; margin-top: 0.25rem; color: #6b7280; }

.ma-code-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(0, 0, 0, 0.6));
    border: 2px solid rgba(212, 175, 55, 0.4); border-radius: 1rem; padding: 1.5rem;
    text-align: center; box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}
.ma-code-label { color: var(--ma-gold); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.75rem; }
.ma-code-value {
    font-family: 'Courier New', monospace; font-size: 2rem; font-weight: 700; letter-spacing: 5px;
    color: #fff; background: rgba(0, 0, 0, 0.5); padding: 0.5rem 1rem; border-radius: 0.75rem; display: inline-block;
}
.ma-code-warning {
    background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 0.5rem; padding: 0.75rem; margin-top: 0.75rem; color: #f87171;
    font-size: 0.85rem; font-weight: 700; text-align: center;
}

.ma-bonus-box {
    background: rgba(234, 179, 8, 0.08); border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 0.75rem; padding: 0.75rem; text-align: center; margin-bottom: 1.5rem;
}
.ma-bonus-label { color: var(--ma-gold); font-size: 0.85rem; }
.ma-bonus-amount { color: #fff; font-size: 1.5rem; font-weight: 700; }
.ma-bonus-note { color: #9ca3af; font-size: 0.75rem; }

.ma-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.ma-footer { text-align: center; margin-top: 1.5rem; }
.ma-footer p { color: #6b7280; font-size: 0.75rem; }

.ma-steps { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.5rem; }
.ma-step-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transition: all 0.3s ease; }
.ma-step-dot.ma-active { background: var(--ma-gold); width: 24px; border-radius: 4px; box-shadow: 0 0 12px rgba(212, 175, 55, 0.4); }

@media (max-width: 640px) {
    .ma-card { padding: 1.5rem; border-radius: 1.25rem; }
    .ma-logo-title { font-size: 1.8rem; }
    .ma-logo-ring { width: 4rem; height: 4rem; }
    .ma-grid-2 { grid-template-columns: 1fr; }
    .ma-code-value { font-size: 1.5rem; letter-spacing: 3px; }
}