/**
 * Magnolia Doors Loyalty Program Styles
 */

.mlp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Login Form Styles */
.mlp-login-form {
    max-width: 450px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 40px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mlp-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.mlp-login-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
}

.mlp-login-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

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

.mlp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.mlp-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.mlp-form-group input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.mlp-form-group input::placeholder {
    color: #999;
}

/* Button Styles */
.mlp-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    position: relative;
}

.mlp-btn-primary {
    background: #2271b1;
    color: #ffffff;
    width: 100%;
}

.mlp-btn-primary:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

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

.mlp-btn-secondary {
    background: #f0f0f1;
    color: #1a1a1a;
    padding: 10px 20px;
}

.mlp-btn-secondary:hover {
    background: #dcdcde;
}

.mlp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Error Message */
.mlp-error-message {
    margin-top: 20px;
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 14px;
    line-height: 1.5;
}

.mlp-error-message strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.mlp-error-message a {
    color: #2271b1;
    text-decoration: none;
}

.mlp-error-message a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.mlp-dashboard {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 40px;
    animation: fadeIn 0.3s ease-in;
}

.mlp-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f1;
}

.mlp-user-info h1 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
}

.mlp-user-email {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Stats Grid */
.mlp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.mlp-stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #f0f0f1;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.mlp-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.mlp-stat-card.mlp-stat-primary {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #ffffff;
    border-color: #2271b1;
}

.mlp-stat-card.mlp-stat-secondary {
    background: linear-gradient(135deg, #00a32a 0%, #008a20 100%);
    color: #ffffff;
    border-color: #00a32a;
}

.mlp-stat-label {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.mlp-stat-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

.mlp-stat-card.mlp-stat-primary .mlp-stat-value,
.mlp-stat-card.mlp-stat-secondary .mlp-stat-value {
    color: #ffffff;
}

/* Tier Badge */
.mlp-tier-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mlp-tier-bronze {
    background: #cd7f32;
    color: #ffffff;
}

.mlp-tier-silver {
    background: #c0c0c0;
    color: #1a1a1a;
}

.mlp-tier-gold {
    background: #ffd700;
    color: #1a1a1a;
}

.mlp-tier-platinum {
    background: #e5e4e2;
    color: #1a1a1a;
}

/* Account Details */
.mlp-account-details {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f1;
}

.mlp-account-details h3 {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.mlp-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.mlp-detail-item {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.mlp-detail-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 6px;
}

.mlp-detail-value {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mlp-container {
        padding: 20px 15px;
    }
    
    .mlp-login-form {
        padding: 30px 20px;
    }
    
    .mlp-dashboard {
        padding: 30px 20px;
    }
    
    .mlp-dashboard-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .mlp-dashboard-header .mlp-btn {
        width: 100%;
    }
    
    .mlp-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .mlp-stat-value {
        font-size: 36px;
    }
    
    .mlp-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading State */
.mlp-btn-loader {
    display: inline-block;
}

.mlp-btn.loading .mlp-btn-text {
    display: none;
}

.mlp-btn.loading .mlp-btn-loader {
    display: inline-block;
}

