/**
 * Common Styles for Authentication & Account Pages
 * Used by: login.php, signup.php, plans.php, index.php
 */

/* ===== ANIMATIONS ===== */
@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== GRADIENTS & BACKGROUNDS ===== */
.blue-gradient-bg {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
}

.light-bg {
    background: #f8f9fa;
}

/* ===== TEXT ALIGNMENT ===== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* ===== CONTAINERS ===== */
.login-container,
.signup-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    padding: 50px 40px;
    animation: slideUp 0.4s ease-out;
}

.login-container {
    max-width: 450px;
    margin: auto;
}

.signup-container {
    max-width: 700px;
    margin: 0 auto;
}

/* ===== HEADERS ===== */
.auth-header,
.login-header,
.signup-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h1,
.login-header h1,
.signup-header h1 {
    color: #1a1a1a;
    font-size: 2rem;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.auth-header p,
.login-header p,
.signup-header p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

/* ===== FORM GROUPS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-group input::placeholder {
    color: #aaa;
}

.form-group.required label::after {
    content: ' *';
    color: #c41e3a;
    font-weight: bold;
}

/* ===== SECTIONS ===== */
.form-section {
    margin-bottom: 40px;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #D4AF37;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

/* ===== ALERTS ===== */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
    display: none;
}

.alert.error {
    background: #fee;
    color: #c41e3a;
    border-left: 4px solid #c41e3a;
    display: block;
}

.alert.success {
    background: #efe;
    color: #27ae60;
    border-left: 4px solid #27ae60;
    display: block;
}

/* ===== BUTTONS ===== */
.auth-btn,
.login-btn,
.signup-btn {
    width: 100%;
    padding: 14px;
    background: #0056b3;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-btn:hover,
.login-btn:hover,
.signup-btn:hover {
    background: #003d82;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.signup-btn {
    background: #D4AF37;
    color: #1a1a1a;
}

.signup-btn:hover {
    background: #b8962f;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* ===== LINKS & FOOTER ===== */
.auth-footer,
.login-footer,
.signup-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.95rem;
}

.auth-footer a,
.login-footer a,
.signup-footer a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.auth-footer a:hover,
.login-footer a:hover,
.signup-footer a:hover {
    color: #D4AF37;
}

.back-link {
    text-align: center;
    margin-bottom: 20px;
}

.back-link a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.back-link a:hover {
    color: #0056b3;
}

/* ===== BILLING TOGGLE ===== */
.billing-toggle {
    text-align: center;
    margin-bottom: 60px;
}

.toggle-btn,
.billing-toggle-btn {
    padding: 10px 24px;
    margin: 0 10px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    color: #666;
}

.toggle-btn.active,
.billing-toggle-btn.active {
    background: #D4AF37;
    color: #000;
    border-color: #D4AF37;
}

.toggle-btn:hover,
.billing-toggle-btn:hover {
    border-color: #D4AF37;
}

.billing-toggle-btn.active {
    background: #D4AF37;
    color: #1a1a1a;
    border-color: #D4AF37;
}

/* ===== PLAN CARDS ===== */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.plan-card {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card.popular {
    border-color: #D4AF37;
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
    transform: translateY(-10px);
}

.plan-card.popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #D4AF37;
    color: #1a1a1a;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.plan-card:hover {
    border-color: #D4AF37;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.plan-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #D4AF37;
    margin-bottom: 8px;
}

.plan-price-period {
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.plan-features {
    text-align: left;
    color: #666;
    font-size: 0.95rem;
    line-height: 2;
    margin-bottom: 30px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.plan-features li {
    list-style: none;
    padding-left: 24px;
    position: relative;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #D4AF37;
    font-weight: bold;
}

.plan-select-btn,
.plan-signup-btn {
    width: 100%;
    padding: 12px 24px;
    background: #1a1a1a;
    color: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-card.popular .plan-select-btn,
.plan-card.popular .plan-signup-btn {
    background: #D4AF37;
    color: #1a1a1a;
    border-color: #D4AF37;
}

.plan-select-btn:hover,
.plan-signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.plan-card.popular .plan-select-btn:hover,
.plan-card.popular .plan-signup-btn:hover {
    background: #b8962f;
    border-color: #b8962f;
}

/* ===== PRICING PAGE ===== */
.pricing-header {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.pricing-header h1 {
    font-size: 2.5rem;
    margin: 0 0 20px 0;
    font-weight: 800;
}

.pricing-header p {
    font-size: 1.2rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.pricing-container {
    max-width: 1200px;
    margin: -20px auto 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.error-message {
    background: #fee;
    color: #c41e3a;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #c41e3a;
    text-align: center;
    font-weight: 600;
}

.view-all-btn {
    text-align: center;
    margin-top: 30px;
}

.view-all-btn a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.view-all-btn a:hover {
    color: #D4AF37;
}
/* ===== MODAL INPUTS ===== */
.modal-input-group {
    width: 100%;
    margin-bottom: 20px;
}

.modal-input-group label {
    display: block;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.modal-input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.modal-input-group input:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .login-container,
    .signup-container,
    .auth-container {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-header h1,
    .login-header h1,
    .signup-header h1,
    .pricing-header h1 {
        font-size: 1.8rem;
    }
    
    .auth-header p,
    .login-header p,
    .signup-header p,
    .pricing-header p {
        font-size: 1rem;
    }
    
    .toggle-btn,
    .billing-toggle-btn {
        display: block;
        width: 90%;
        margin: 10px auto;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
}
body{
    background:#333333;
}

        body.auth-page {
            min-height: 100vh;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            margin: 0;
        }
        
        /* Plan Selection */
        .plans-selector {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .plan-option {
            position: relative;
        }
        
        .plan-option input[type="radio"] {
            display: none;
        }
        
        .plan-label {
            display: block;
            padding: 15px;
            border: 2px solid #ddd;
            border-radius: 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .plan-option input[type="radio"]:checked + .plan-label {
            border-color: #D4AF37;
            background: rgba(212, 175, 55, 0.1);
        }
        
        .plan-label-name {
            font-weight: 700;
            color: #1a1a1a;
            display: block;
            margin-bottom: 5px;
        }
        
        .plan-label-price {
            color: #D4AF37;
            font-weight: 800;
            font-size: 1.1rem;
        }
        
        .billing-cycle-toggle {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            justify-content: center;
        }
        .auth-container{
            background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
            padding-top: 40px;
            padding-bottom: 40px;
        }