:root {
    --auth-primary: #6366f1;
    --auth-primary-light: #818cf8;
    --auth-primary-dark: #4f46e5;
    --auth-secondary: #8b5cf6;
    --auth-accent: #ec4899;
    --auth-text-dark: #0f172a;
    --auth-text-light: #64748b;
    --auth-text: #e2e8f0;
    --auth-text-muted: #94a3b8;
    --auth-success: #10b981;
    --auth-bg-light: #f8fafc;
    --auth-bg-card: rgba(30, 41, 59, 0.4);
    --auth-gradient: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-secondary) 100%);
    --auth-gradient-dark: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #8b5cf6 100%);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 20px 60px rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --dark: #070e17;
    --dark-alt: #1e293b;
    --border: rgba(148, 163, 184, 0.15);
}

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

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--auth-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated background matching landing page */
.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background: linear-gradient(135deg, var(--dark) 0%, #101a24 50%, var(--dark) 100%);
}

.bg-animation::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.06) 0%, transparent 50%);
    animation: float 30s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(3deg); }
    66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

.auth-container {
    min-height: 100vh;
    display: flex;
    position: relative;
    z-index: 1;
}

/* Animated background particles - keeping for compatibility */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--auth-primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: particleFloat 6s ease-in-out infinite;
}

.particle:nth-child(1) { width: 80px; height: 80px; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 60px; height: 60px; left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { width: 40px; height: 40px; left: 70%; animation-delay: 2s; }
.particle:nth-child(4) { width: 100px; height: 100px; left: 80%; animation-delay: 3s; }
.particle:nth-child(5) { width: 50px; height: 50px; left: 40%; animation-delay: 4s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.3; }
}

/* Left side - Hero section */
.hero-section {
    flex: 1;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(15px);
    border-right: 1px solid var(--border);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.15) 50%, rgba(236, 72, 153, 0.1) 100%);
    opacity: 1;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    z-index: 0;
    animation: float 30s ease-in-out infinite;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
    animation: pattern-drift 20s ease-in-out infinite;
    z-index: 1;
}

/* Property Management Animations */
.property-animations {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

/* Building House Animation */
.building-house {
    position: absolute;
    bottom: 15%;
    left: 10%;
    width: 120px;
    height: 120px;
    animation: buildHouse 8s ease-in-out infinite;
}

.house-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    border: 2px solid rgba(99, 102, 241, 0.5);
    border-radius: 4px 4px 0 0;
    clip-path: polygon(0 100%, 0 40%, 50% 0, 100% 40%, 100% 100%);
}

.house-roof {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 45px solid transparent;
    border-right: 45px solid transparent;
    border-bottom: 30px solid rgba(99, 102, 241, 0.4);
    animation: buildRoof 8s ease-in-out infinite;
}

.house-door {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 30px;
    background: rgba(139, 92, 246, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.6);
    border-radius: 2px 2px 0 0;
    animation: buildDoor 8s ease-in-out infinite;
}

.house-window {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 15px;
    height: 15px;
    background: rgba(236, 72, 153, 0.4);
    border: 1px solid rgba(236, 72, 153, 0.6);
    border-radius: 2px;
    animation: buildWindow 8s ease-in-out infinite;
}

.house-window.right {
    left: auto;
    right: 20px;
}

/* Management Icons Animation */
.management-icons {
    position: absolute;
    top: 20%;
    right: 15%;
    animation: floatIcons 6s ease-in-out infinite;
}

.key-icon {
    position: absolute;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.6), rgba(139, 92, 246, 0.6));
    border-radius: 4px;
    animation: rotateKey 3s ease-in-out infinite;
}

.key-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

.key-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    margin-left: 8px;
}

.chart-icon {
    position: absolute;
    top: 50px;
    left: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(236, 72, 153, 0.4));
    border-radius: 4px;
    animation: growChart 4s ease-in-out infinite;
}

.chart-bar {
    position: absolute;
    bottom: 4px;
    width: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px 2px 0 0;
    animation: chartGrow 4s ease-in-out infinite;
}

.chart-bar:nth-child(1) { left: 8px; height: 0; animation-delay: 0s; }
.chart-bar:nth-child(2) { left: 16px; height: 0; animation-delay: 0.2s; }
.chart-bar:nth-child(3) { left: 24px; height: 0; animation-delay: 0.4s; }
.chart-bar:nth-child(4) { left: 32px; height: 0; animation-delay: 0.6s; }

/* Monitoring Dashboard */
.monitoring-dashboard {
    position: absolute;
    bottom: 25%;
    right: 10%;
    width: 100px;
    height: 80px;
    background: rgba(30, 41, 59, 0.4);
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 8px;
    padding: 8px;
    animation: pulseDashboard 5s ease-in-out infinite;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    height: 100%;
}

.dashboard-cell {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 2px;
    animation: cellPulse 2s ease-in-out infinite;
}

.dashboard-cell:nth-child(1) { animation-delay: 0s; }
.dashboard-cell:nth-child(2) { animation-delay: 0.3s; }
.dashboard-cell:nth-child(3) { animation-delay: 0.6s; }
.dashboard-cell:nth-child(4) { animation-delay: 0.9s; }
.dashboard-cell:nth-child(5) { animation-delay: 1.2s; }
.dashboard-cell:nth-child(6) { animation-delay: 1.5s; }

/* Floating Property Cards */
.floating-card {
    position: absolute;
    width: 60px;
    height: 40px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 6px;
    animation: floatCard 10s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 60%;
    left: 25%;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    top: 40%;
    right: 20%;
    animation-delay: 4s;
}

/* Animations */
@keyframes buildHouse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    25% { opacity: 0.6; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1); }
    75% { opacity: 0.8; transform: scale(0.95); }
}

@keyframes buildRoof {
    0% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    20% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes buildDoor {
    0% { opacity: 0; height: 0; }
    30% { opacity: 1; height: 30px; }
    100% { opacity: 1; height: 30px; }
}

@keyframes buildWindow {
    0% { opacity: 0; transform: scale(0); }
    40% { opacity: 1; transform: scale(1); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes floatIcons {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes rotateKey {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

@keyframes growChart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes chartGrow {
    0% { height: 0; opacity: 0; }
    50% { height: 20px; opacity: 1; }
    100% { height: 25px; opacity: 1; }
}

@keyframes pulseDashboard {
    0%, 100% { box-shadow: 0 0 0 rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.5); }
}

@keyframes cellPulse {
    0%, 100% { opacity: 0.3; background: rgba(99, 102, 241, 0.2); }
    50% { opacity: 1; background: rgba(99, 102, 241, 0.5); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.4; }
    25% { transform: translateY(-20px) translateX(10px) rotate(5deg); opacity: 0.7; }
    50% { transform: translateY(-10px) translateX(-5px) rotate(-3deg); opacity: 0.6; }
    75% { transform: translateY(-15px) translateX(5px) rotate(2deg); opacity: 0.8; }
}

@keyframes pattern-drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, 10px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 600px;
}

.hero-content h1 {
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: slideInUp 0.8s ease-out;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.business-stats,
.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 40px;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.stat-card {
    background: rgba(30, 41, 59, 0.4);
    padding: 25px 20px;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--auth-primary);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number,
.stat-label {
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    display: block;
    margin-bottom: 8px;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    color: white;
}

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

/* Right side - Form section */
.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 520px;
    background: rgba(30, 41, 59, 0.4);
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px) saturate(150%);
    animation: slideInRight 0.8s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: var(--auth-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.logo-icon i {
    font-size: 28px;
    color: white;
}

.logo-text {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--auth-text);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tagline {
    color: var(--auth-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

.welcome-section {
    margin-bottom: 28px;
    text-align: center;
}

.welcome-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--auth-text);
    margin-bottom: 6px;
}

.welcome-section p {
    color: var(--auth-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-label i {
    color: var(--auth-primary);
    font-size: 0.85rem;
}

.form-input {
    width: 100%;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(30, 41, 59, 0.3);
    color: var(--auth-text);
}

.form-input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(30, 41, 59, 0.5);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: var(--auth-text-muted);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--auth-primary);
}

.input-wrapper {
    position: relative;
}

.login-type-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.toggle-option {
    flex: 1;
    padding: 10px 16px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--auth-text-muted);
    border: 2px solid transparent;
}

.toggle-option.active {
    background: var(--auth-gradient);
    color: white;
    border-color: var(--auth-primary);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.toggle-option i {
    margin-right: 6px;
}

.phone-input-wrapper {
    display: flex;
    gap: 8px;
}

.country-code-select {
    flex: 0 0 120px;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 14px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(30, 41, 59, 0.3);
    color: var(--auth-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.country-code-select:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(30, 41, 59, 0.5);
}

.phone-number-input {
    flex: 1;
}

.forgot-password {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--auth-primary-dark);
    text-decoration: underline;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-checkbox.checked {
    background: var(--auth-primary);
    border-color: var(--auth-primary);
}

.custom-checkbox.checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.remember-label {
    color: var(--auth-text-muted);
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.auth-btn {
    width: 100%;
    background: var(--auth-gradient);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
    background: var(--auth-gradient-dark);
}

.auth-btn:active {
    transform: translateY(-1px);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
}

.auth-link span {
    color: var(--auth-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-link a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 700;
    margin-left: 4px;
    transition: color 0.3s ease;
}

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

.form-error {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 6px;
    font-weight: 500;
}

.alert {
    border-radius: 12px;
    border: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    z-index: 10;
}

.alert i {
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.alert ul {
    margin-top: 8px;
    padding-left: 20px;
}

.alert ul li {
    margin-bottom: 4px;
}

.alert-danger {
    background: rgba(211, 47, 47, 0.25);
    color: #ff6b6b;
    border: 1px solid rgba(211, 47, 47, 0.4);
    border-left: 4px solid #d32f2f;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-left: 4px solid #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.is-invalid {
    border-color: #d32f2f !important;
}

.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1) !important;
}

.row {
    margin-left: -8px;
    margin-right: -8px;
}

.row > * {
    padding-left: 8px;
    padding-right: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section {
        display: none;
    }

    .form-section {
        flex: none;
        width: 100%;
        min-height: 100vh;
    }
}

@media (max-width: 640px) {
    .form-section {
        padding: 20px;
    }

    .auth-card {
        padding: 30px 24px;
        border-radius: 20px;
        max-height: 95vh;
    }

    .logo-text {
        font-size: 2rem;
    }

    .welcome-section h2 {
        font-size: 1.4rem;
    }

    .form-input {
        padding: 12px 14px;
    }
}

/* Loading state */
.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

