/* Authentication Styles */
.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-blue), #283593);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--orange), var(--dark-yellow));
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--light-gray);
}

.auth-header h1 {
    color: var(--dark-blue);
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-header p {
    color: var(--text-gray);
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: var(--text-gray);
    z-index: 2;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.1);
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    z-index: 2;
    padding: 5px;
}

.toggle-password:hover {
    color: var(--orange);
}

.password-requirements {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--orange);
}

.password-requirements p {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.password-requirements ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.password-requirements li {
    margin: 5px 0;
    font-size: 0.85rem;
    color: var(--text-gray);
    position: relative;
}

.password-requirements li::before {
    content: '✗';
    position: absolute;
    left: -20px;
    color: #dc3545;
}

.password-requirements li.valid::before {
    content: '✓';
    color: #28a745;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.checkbox-container input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.forgot-password {
    color: var(--orange);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
}

.auth-divider span {
    background: var(--white);
    padding: 0 20px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.auth-links {
    text-align: center;
}

.auth-links p {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.auth-links a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

.terms-link {
    color: var(--orange);
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Error and Success Messages */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin: 10px 0;
    font-size: 0.9rem;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin: 10px 0;
    font-size: 0.9rem;
}

/* Loading State */
.auth-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        padding: 10px;
    }
    
    .auth-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Admin Panel Styles */
.admin-panel {
    background: var(--light-gray);
    min-height: 100vh;
    padding: 20px;
}

.admin-header {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.admin-header h1 {
    color: var(--dark-blue);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-header h1 i {
    color: var(--orange);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    color: var(--dark-blue);
    margin: 0 0 10px 0;
    font-size: 2rem;
}

.stat-card p {
    color: var(--text-gray);
    margin: 0;
    font-weight: 600;
}

.users-table {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.users-table table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.users-table th {
    background: var(--light-gray);
    color: var(--dark-blue);
    font-weight: 600;
}

.users-table tr:hover {
    background: #f8f9fa;
}

.subscription-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.subscription-basic {
    background: #e3f2fd;
    color: #1976d2;
}

.subscription-intermediate {
    background: #f3e5f5;
    color: #7b1fa2;
}

.subscription-advanced {
    background: #e8f5e8;
    color: #388e3c;
}

.subscription-premium {
    background: #fff3e0;
    color: #f57c00;
}

.subscription-ultimate {
    background: #fce4ec;
    color: #c2185b;
}
