/* FILE: /public_html/MM/usermanagement/css/neoglass.css */

/* ===== CSS Variables ===== */
:root {
    /* NeoGlass Theme */
    --neo-bg: rgba(255, 255, 255, 0.1);
    --neo-border: rgba(255, 255, 255, 0.15);
    --neo-border-strong: rgba(255, 255, 255, 0.25);
    --neo-shadow-light: 4px 4px 12px rgba(0, 0, 0, 0.1),
                       -4px -4px 12px rgba(255, 255, 255, 0.05);
    --neo-shadow-medium: 8px 8px 24px rgba(0, 0, 0, 0.15),
                        -8px -8px 24px rgba(255, 255, 255, 0.07);
    --neo-shadow-heavy: 20px 20px 60px rgba(0, 0, 0, 0.25),
                       -20px -20px 60px rgba(255, 255, 255, 0.1);
    --neo-blur: blur(10px);
    
    /* Colors */
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --success: #48bb78;
    --danger: #f56565;
    --warning: #ed8936;
    --dark: #2d3748;
    --light: #f7fafc;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Reset & Base ===== */
.mm-auth-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== Container ===== */
.neoglass-container {
    background: var(--neo-bg);
    backdrop-filter: var(--neo-blur);
    border: 1px solid var(--neo-border);
    border-radius: 20px;
    box-shadow: var(--neo-shadow-medium);
    padding: 40px;
    max-width: 480px;
    margin: 40px auto;
    position: relative;
    overflow: hidden;
}

.neoglass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

/* ===== Tabs ===== */
.mm-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--neo-border);
    padding-bottom: 15px;
}

.mm-tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    position: relative;
}

.mm-tab-btn.active {
    color: white;
    background: rgba(102, 126, 234, 0.1);
}

.mm-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.mm-tab-btn:hover:not(.active) {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

/* ===== Forms ===== */
.mm-form {
    display: block;
}

.mm-form.hidden {
    display: none;
}

.mm-form-group {
    margin-bottom: 24px;
}

.mm-form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.mm-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--neo-border);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mm-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mm-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ===== Buttons ===== */
.mm-btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.mm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.mm-btn-primary:active {
    transform: translateY(0);
}

.mm-btn-success {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.mm-btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    margin-top: 15px;
    text-align: center;
    display: block;
    width: 100%;
}

.mm-btn-text:hover {
    text-decoration: underline;
}

/* ===== OTP Section ===== */
.mm-otp-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--neo-border);
    animation: fadeIn 0.5s ease;
}

.mm-otp-input {
    font-size: 32px;
    letter-spacing: 20px;
    text-align: center;
    font-weight: bold;
    padding: 15px;
}

.mm-otp-timer {
    text-align: center;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.mm-otp-timer span {
    color: var(--danger);
    font-weight: bold;
}

/* ===== Plan Selector ===== */
.mm-plan-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.mm-plan-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--neo-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mm-plan-option.active {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

.mm-plan-option h4 {
    color: white;
    margin-bottom: 8px;
    font-size: 16px;
}

.mm-plan-option p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-bottom: 10px;
}

.mm-price {
    color: var(--primary);
    font-weight: bold;
    font-size: 18px;
}

/* ===== Loading ===== */
.mm-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 20px;
}

.mm-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.mm-loading p {
    color: white;
    margin-top: 15px;
    font-size: 14px;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .neoglass-container {
        padding: 30px 20px;
        margin: 20px;
        border-radius: 15px;
    }
    
    .mm-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .mm-plan-selector {
        grid-template-columns: 1fr;
    }
    
    .mm-tab-btn {
        width: 100%;
        text-align: center;
        border-radius: 8px;
        margin-bottom: 5px;
    }
    
    .mm-tab-btn.active::after {
        display: none;
    }
}

/* ===== Dark Background (for testing) ===== */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    font-family: var(--font-sans);
}

/* ===== Notification ===== */
.mm-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}