/* static/css/auth.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

input{
    font-family: unset;
}
body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.login-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.login-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.login-content {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.login-info-side {
    flex: 1;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-box-side {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-title {
    margin-bottom: 30px;
}

.welcome-title h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #1e3c72;
}

.welcome-title p {
    color: #666;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Vazir', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(42, 82, 152, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.system-info {
    border-left: 4px solid #2a5298;
    margin-top: 5px;
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 10px;
    border-right: 4px solid #2a5298;
    margin-bottom: 15px;
}

.system-info h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 0.95rem;
}

.info-item i {
    color: #2a5298;
    font-size: 1.2rem;
}

/* Alert Messages */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* University Info */
.university-info {
    margin-top: 30px;
}

.university-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.university-info p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.9;
}

.features {
    margin-top: 25px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.feature i {
    font-size: 1.5rem;
    color: #4dabf7;
}

.feature span {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .login-content {
        flex-direction: column;
        max-width: 500px;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }
    
    .login-header p {
        font-size: 1rem;
    }
    
    .login-info-side,
    .login-box-side {
        padding: 30px;
    }
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Additional Styles for Icons */
.icon {
    font-family: 'Font Awesome 5 Free', 'Vazir';
    font-weight: 900;
}

/* Custom Checkbox */
.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.remember-me input {
    width: 18px;
    height: 18px;
}

.remember-me label {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Link Styles */
.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: #2a5298;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password a:hover {
    text-decoration: underline;
}