/* Authentication Pages Styling */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(175, 115, 239, 0.1), rgba(63, 143, 239, 0.1));
    padding: 2rem;
}

.auth-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    animation: fadeInUp 0.6s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

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

.auth-logo {
    max-width: 200px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
}

.auth-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-light);
}

.auth-form {
    margin-bottom: 2rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.3rem;
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
    font-size: 0.9rem;
}

.error-message.show {
    display: block;
}

.success-message {
    background: #efe;
    color: #3c3;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
    font-size: 0.9rem;
}

.success-message.show {
    display: block;
}

.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.auth-footer p {
    color: var(--text-light);
    margin: 1rem 0;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.forgot-password {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--text-light) !important;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--primary-color) !important;
}

/* Dashboard Styles */
.dashboard-container {
    min-height: 100vh;
    background: var(--bg-light);
    padding-top: 80px;
}

.dashboard-header {
    background: var(--white);
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.dashboard-header h1 {
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--text-light);
}

.dashboard-content {
    padding: 2rem 0;
}

.dashboard-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.subscription-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.subscription-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-badge.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.cancelled {
    background: #ffebee;
    color: #c62828;
}

.subscription-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-item label {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.detail-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.subscription-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-danger {
    background: #c62828;
    color: var(--white);
}

.btn-danger:hover {
    background: #b71c1c;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 2rem;
    }
    
    .dashboard-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        white-space: nowrap;
    }
    
    .subscription-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .subscription-actions {
        flex-direction: column;
    }
    
    .subscription-actions .btn {
        width: 100%;
    }
}
