/* Auth Styles */
:root {
    --primary-color: #007bff; /* Example primary color */
    --danger-color: #dc3545;  /* Example danger color */
    --success-color: #28a745; /* Example success color */
    --warning-color: #ffc107; /* Example warning color */
    --info-color: #17a2b8;    /* Example info color */
    --dark-color: #343a40;    /* Example dark color */
    --text-color: #333;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 60%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.auth-header .header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.auth-header .header-logo {
    max-width: 80px; /* Adjust as needed */
    height: auto;
}

.auth-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.auth-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.auth-header p {
    color: var(--text-color);
    font-size: 0.9rem;
}

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #363;
    border: 1px solid #cfc;
}

/* Close button for alerts */
.alert .close-btn {
    margin-left: 15px;
    color: #000;
    font-weight: bold;
    float: right;
    font-size: 30px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.alert .close-btn:hover {
    color: #ccc;
}

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

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

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

.radio-group label {
    background-color: #ee0707;
	color: #f9f4f4;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.radio-group input[type="radio"]:checked + label {
    background-color: var(--primary-color);
    color: #fff;
}


.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}

input[readonly] {
  background-color: #f8d7da; /* light red background */
  border: 1px solid #dc3545; /* red border */
  color: #6c757d;
  cursor: not-allowed;
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
	font-family: 'Cairo', sans-serif;
}

.btn-full i {
    margin-left: 0.5rem;
}

.auth-links {
    text-align: center;
    margin-top: auto; /* Push to bottom */
    margin-bottom: 1.5rem;
}

.auth-links p {
    margin-bottom: 0.5rem;
    color: #666;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.demo-accounts {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.demo-accounts h4 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1rem;
}

.demo-accounts p {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.demo-accounts strong {
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .auth-card {
        width: 70%;
    }
}

@media (max-width: 1024px) {
    .auth-card {
        width: 80%;
        padding: 2rem;
    }
    
    .auth-header h2 {
        font-size: 1.8rem;
    }
    
    .auth-header p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .auth-card {
        width: 90%;
        padding: 1.8rem;
    }
    
    .auth-header h2 {
        font-size: 1.6rem;
    }
    
    .auth-header i {
        font-size: 2.8rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem 0.9rem 0.9rem 2.8rem;
        font-size: 0.95rem;
    }
    
    .form-group i {
        left: 0.9rem;
    }
    
    .btn-full {
        padding: 0.9rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
        margin: 1rem;
        width: 100%;
        border-radius: 15px;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .auth-header i {
        font-size: 2.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem 0.8rem 0.8rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .form-group i {
        left: 0.8rem;
    }
    
    .btn-full {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    .auth-links p {
        font-size: 0.9rem;
    }
    
    .auth-links {
        margin-bottom: 1rem;
    }
    
    .demo-accounts h4 {
        font-size: 0.95rem;
    }
    
    .demo-accounts p {
        font-size: 0.85rem;
    }
}

@media (max-width: 320px) {
    .auth-card {
        padding: 1.2rem;
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    .auth-header h2 {
        font-size: 1.3rem;
    }
    
    .auth-header i {
        font-size: 2.2rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem 0.7rem 0.7rem 2.2rem;
        font-size: 0.85rem;
    }
    
    .form-group i {
        left: 0.7rem;
    }
    
    .btn-full {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    .auth-links p {
        font-size: 0.85rem;
    }
    
    .demo-accounts h4 {
        font-size: 0.9rem;
    }
    
    .demo-accounts p {
        font-size: 0.8rem;
    }
}}

/* Animation */
.auth-card {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Validation Styles */
.form-group input:invalid {
    border-color: #ff4757;
}

.form-group input:valid {
    border-color: #2ed573;
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}