/**
 * =====================================================
 * Login Page Styles - تصميم صفحة تسجيل الدخول
 * E-Institute - المعهد الإلكتروني
 * =====================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

* {
    font-family: 'Cairo', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    max-width: 450px;
    width: 100%;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.login-header {
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.login-header img {
    max-width: 120px;
    max-height: 120px;
    margin-bottom: 20px;
}

.login-header h4 {
    margin: 0;
    font-weight: 600;
    font-size: 24px;
}

.login-header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.login-body {
    padding: 40px 30px;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-control {
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    font-size: 15px;
    transition: all 0.3s;
}

.input-group-text {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-left: 0;
    border-radius: 0 10px 10px 0;
}

.input-group .form-control {
    border-left: 0;
    border-radius: 10px 0 0 10px;
}

.btn-login {
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s;
    color: white;
}

.btn-login:hover {
    transform: translateY(-2px);
    color: white;
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    font-size: 14px;
}

.form-check-label {
    font-weight: 500;
    color: #666;
}

.forgot-link {
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.forgot-link:hover {
    text-decoration: underline;
}

.alert-timeout {
    border-radius: 10px;
    margin-bottom: 20px;
}

.toggle-password {
    cursor: pointer;
    transition: all 0.3s;
}

.login-footer {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    color: #666;
    font-size: 13px;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    margin-left: 8px;
}

/* CAPTCHA Styles */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.captcha-image {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 5px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.captcha-image:hover {
    border-color: #aaa;
}

.captcha-image img {
    display: block;
    width: 60px;
    height: 22px;
}

.captcha-refresh {
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.captcha-refresh:hover {
    transform: rotate(180deg);
}
