/* Premium Authentication System Styles */
/* Author: AI Assistant */
/* Date: July 7, 2025 */

/* Authentication Messages */
.auth-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.auth-message-success {
    border-left: 4px solid #27ae60;
    color: #27ae60;
}

.auth-message-error {
    border-left: 4px solid #e74c3c;
    color: #e74c3c;
}

.auth-message-info {
    border-left: 4px solid #3498db;
    color: #3498db;
}

.close-message {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.close-message:hover {
    opacity: 1;
}

/* User Info Display */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
}

.user-name {
    font-weight: 500;
}

.user-tier {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tier-free {
    background: #95a5a6;
    color: white;
}

.tier-premium {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.tier-enterprise {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

/* Feature Access Control */
.premium-feature {
    position: relative;
}

.feature-locked {
    opacity: 0.6;
    pointer-events: none;
}

.upgrade-prompt {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.upgrade-overlay {
    text-align: center;
    color: white;
    padding: 20px;
}

.upgrade-overlay i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #f39c12;
}

.upgrade-overlay h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.upgrade-overlay p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn-upgrade {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Login/Logout Buttons */
.login-btn, .logout-btn {
    padding: 8px 20px;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.login-btn:hover, .logout-btn:hover {
    background: white;
    color: #2c3e50;
    transform: translateY(-2px);
}

.logout-btn {
    border-color: #e74c3c;
    color: #e74c3c;
}

.logout-btn:hover {
    background: #e74c3c;
    color: white;
}

/* Auth Forms */
.auth-form {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    margin: 0 auto;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input.error {
    border-color: #e74c3c;
}

.tier-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.tier-option {
    position: relative;
}

.tier-option input[type="radio"] {
    display: none;
}

.tier-label {
    display: block;
    padding: 15px 10px;
    text-align: center;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tier-option input[type="radio"]:checked + .tier-label {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.tier-label .tier-name {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.tier-label .tier-price {
    font-size: 0.9rem;
    opacity: 0.8;
}

.tier-label .tier-features {
    font-size: 0.8rem;
    margin-top: 5px;
}

.btn-auth {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-links {
    text-align: center;
    margin-top: 25px;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Pricing Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border: 3px solid #667eea;
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 20px;
    right: -30px;
    background: #667eea;
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.pricing-tier {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.pricing-period {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
    color: #2c3e50;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: #27ae60;
    margin-right: 10px;
}

.pricing-features li.disabled {
    color: #95a5a6;
}

.pricing-features li.disabled i {
    color: #95a5a6;
}

.btn-pricing {
    width: 100%;
    padding: 15px;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-pricing:hover, .pricing-card.featured .btn-pricing {
    background: #667eea;
    color: white;
}

/* User Dashboard */
.user-dashboard {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.stat-label {
    color: #7f8c8d;
    margin-top: 5px;
}

.progress-usage {
    background: #ecf0f1;
    border-radius: 10px;
    height: 8px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-form {
        padding: 20px;
        margin: 10px;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .user-stats {
        grid-template-columns: 1fr;
    }
    
    .tier-selection {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}
