
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.logo p {
    color: #7f8c8d;
    font-size: 16px;
}

.gold-bar {
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    border-radius: 2px;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control::placeholder {
    color: #bdc3c7;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #219a52, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.links {
    text-align: center;
    margin-top: 25px;
}

.links a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #ffeaea;
    color: #c0392b;
    border: 1px solid #ffcccc;
}

.alert-success {
    background: #eaffea;
    color: #27ae60;
    border: 1px solid #ccffcc;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.feature {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-3px);
}

.feature i {
    font-size: 24px;
    color: #3498db;
    margin-bottom: 8px;
}

.feature span {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
}

.language-switcher {
    text-align: center;
    margin-top: 20px;
}

.language-switcher select {
    padding: 8px 15px;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    background: white;
    font-size: 14px;
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

/* RTL specific styles */
body[dir="rtl"] .form-control {
    text-align: right;
}

body[dir="rtl"] .feature {
    text-align: center;
}

/* Account Type Buttons */
/* Account Type Buttons - Improved */
.account-type-buttons {
margin-bottom: 10px;
}

.account-type-buttons .btn-group {
display: flex;
border-radius: 12px;
overflow: hidden;
border: 2px solid #e8e8e8;
background: #f8f9fa;
transition: all 0.3s ease;
}

.account-type-buttons .btn-group:focus-within {
border-color: #3498db;
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.account-type-buttons .btn {
flex: 1;
padding: 15px 20px;
border: none;
font-weight: 600;
font-size: 14px;
transition: all 0.3s ease;
position: relative;
background: transparent;
color: #7f8c8d;
cursor: pointer;
}

/* Hide the actual radio inputs */
.account-type-buttons .btn-check {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}

/* Demo account button styles */
.account-type-buttons #demo_account + .btn {
border-right: 1px solid #e8e8e8;
}

.account-type-buttons #demo_account:checked + .btn {
background: linear-gradient(135deg, #f39c12, #e67e22);
color: white;
transform: scale(1.02);
box-shadow: 0 3px 10px rgba(243, 156, 18, 0.3);
}

.account-type-buttons #demo_account:not(:checked) + .btn:hover {
background: rgba(243, 156, 18, 0.1);
color: #e67e22;
}

/* Real account button styles */
.account-type-buttons #real_account:checked + .btn {
background: linear-gradient(135deg, #27ae60, #2ecc71);
color: white;
transform: scale(1.02);
box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
}

.account-type-buttons #real_account:not(:checked) + .btn:hover {
background: rgba(39, 174, 96, 0.1);
color: #27ae60;
}

/* Active state for both buttons */
.account-type-buttons .btn-check:checked + .btn {
font-weight: 700;
letter-spacing: 0.5px;
}

/* Account type hints */
.account-type-hints {
margin-top: 8px;
font-size: 12px;
color: #7f8c8d;
text-align: center;
min-height: 20px;
}

#demo-hint, #real-hint {
display: block;
padding: 5px 10px;
border-radius: 6px;
background: #f8f9fa;
transition: all 0.3s ease;
}

#demo-hint {
background: rgba(243, 156, 18, 0.1);
color: #e67e22;
}

#real-hint {
background: rgba(39, 174, 96, 0.1);
color: #27ae60;
}

/* CAPTCHA Styles */
.captcha-section {
margin-bottom: 25px;
}

.captcha-display {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 15px;
background: #f8f9fa;
padding: 15px;
border-radius: 12px;
border: 2px solid #e8e8e8;
}

.captcha-image-container {
flex: 1;
position: relative;
background: white;
border-radius: 8px;
overflow: hidden;
border: 1px solid #ddd;
min-height: 80px;
display: flex;
align-items: center;
justify-content: center;
}

.captcha-image {
max-width: 100%;
height: auto;
border-radius: 6px;
}

.captcha-loading {
display: none;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255,255,255,0.9);
align-items: center;
justify-content: center;
font-size: 14px;
color: #666;
}

.captcha-loading.show {
display: flex;
}

.btn-refresh-captcha {
background: linear-gradient(135deg, #3498db, #2980b9);
color: white;
border: none;
border-radius: 8px;
padding: 12px 15px;
cursor: pointer;
transition: all 0.3s ease;
font-size: 16px;
min-width: 50px;
}

.btn-refresh-captcha:hover {
background: linear-gradient(135deg, #2980b9, #21618c);
transform: scale(1.05);
}

.btn-refresh-captcha:disabled {
background: #bdc3c7;
cursor: not-allowed;
transform: none;
}

.captcha-input-group {
position: relative;
}

.captcha-input {
padding-left: 50px !important;
text-align: center;
font-family: 'Courier New', monospace;
font-size: 18px;
font-weight: bold;
letter-spacing: 3px;
direction: ltr;
}

.captcha-icon {
position: absolute;
left: 15px;
top: 50%;
transform: translateY(-50%);
color: #7f8c8d;
font-size: 18px;
z-index: 2;
}

.captcha-hint {
font-size: 12px;
color: #7f8c8d;
text-align: center;
margin-top: 8px;
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
}

.audio-captcha-btn {
background: none;
border: none;
color: #3498db;
cursor: pointer;
font-size: 14px;
margin-right: 10px;
}

.audio-captcha-btn:hover {
color: #2980b9;
}

.captcha-stats {
display: flex;
justify-content: space-between;
font-size: 11px;
color: #95a5a6;
margin-top: 5px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.logo p {
    color: #7f8c8d;
    font-size: 16px;
}

.gold-bar {
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    border-radius: 2px;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control::placeholder {
    color: #bdc3c7;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #219a52, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.links {
    text-align: center;
    margin-top: 25px;
}

.links a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #ffeaea;
    color: #c0392b;
    border: 1px solid #ffcccc;
}

.alert-success {
    background: #eaffea;
    color: #27ae60;
    border: 1px solid #ccffcc;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.feature {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-3px);
}

.feature i {
    font-size: 24px;
    color: #3498db;
    margin-bottom: 8px;
}

.feature span {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
}

.language-switcher {
    text-align: center;
    margin-top: 20px;
}

.language-switcher select {
    padding: 8px 15px;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    background: white;
    font-size: 14px;
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

/* RTL specific styles */
body[dir="rtl"] .form-control {
    text-align: right;
}

body[dir="rtl"] .feature {
    text-align: center;
}

/* Account Type Buttons */
/* Account Type Buttons - Improved */
.account-type-buttons {
margin-bottom: 10px;
}

.account-type-buttons .btn-group {
display: flex;
border-radius: 12px;
overflow: hidden;
border: 2px solid #e8e8e8;
background: #f8f9fa;
transition: all 0.3s ease;
}

.account-type-buttons .btn-group:focus-within {
border-color: #3498db;
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.account-type-buttons .btn {
flex: 1;
padding: 15px 20px;
border: none;
font-weight: 600;
font-size: 14px;
transition: all 0.3s ease;
position: relative;
background: transparent;
color: #7f8c8d;
cursor: pointer;
}

/* Hide the actual radio inputs */
.account-type-buttons .btn-check {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}

/* Demo account button styles */
.account-type-buttons #demo_account + .btn {
border-right: 1px solid #e8e8e8;
}

.account-type-buttons #demo_account:checked + .btn {
background: linear-gradient(135deg, #f39c12, #e67e22);
color: white;
transform: scale(1.02);
box-shadow: 0 3px 10px rgba(243, 156, 18, 0.3);
}

.account-type-buttons #demo_account:not(:checked) + .btn:hover {
background: rgba(243, 156, 18, 0.1);
color: #e67e22;
}

/* Real account button styles */
.account-type-buttons #real_account:checked + .btn {
background: linear-gradient(135deg, #27ae60, #2ecc71);
color: white;
transform: scale(1.02);
box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
}

.account-type-buttons #real_account:not(:checked) + .btn:hover {
background: rgba(39, 174, 96, 0.1);
color: #27ae60;
}

/* Active state for both buttons */
.account-type-buttons .btn-check:checked + .btn {
font-weight: 700;
letter-spacing: 0.5px;
}

/* Account type hints */
.account-type-hints {
margin-top: 8px;
font-size: 12px;
color: #7f8c8d;
text-align: center;
min-height: 20px;
}

#demo-hint, #real-hint {
display: block;
padding: 5px 10px;
border-radius: 6px;
background: #f8f9fa;
transition: all 0.3s ease;
}

#demo-hint {
background: rgba(243, 156, 18, 0.1);
color: #e67e22;
}

#real-hint {
background: rgba(39, 174, 96, 0.1);
color: #27ae60;
}

/* CAPTCHA Styles */
.captcha-section {
margin-bottom: 25px;
}

.captcha-display {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 15px;
background: #f8f9fa;
padding: 15px;
border-radius: 12px;
border: 2px solid #e8e8e8;
}

.captcha-image-container {
flex: 1;
position: relative;
background: white;
border-radius: 8px;
overflow: hidden;
border: 1px solid #ddd;
min-height: 80px;
display: flex;
align-items: center;
justify-content: center;
}

.captcha-image {
max-width: 100%;
height: auto;
border-radius: 6px;
}

.captcha-loading {
display: none;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255,255,255,0.9);
align-items: center;
justify-content: center;
font-size: 14px;
color: #666;
}

.captcha-loading.show {
display: flex;
}

.btn-refresh-captcha {
background: linear-gradient(135deg, #3498db, #2980b9);
color: white;
border: none;
border-radius: 8px;
padding: 12px 15px;
cursor: pointer;
transition: all 0.3s ease;
font-size: 16px;
min-width: 50px;
}

.btn-refresh-captcha:hover {
background: linear-gradient(135deg, #2980b9, #21618c);
transform: scale(1.05);
}

.btn-refresh-captcha:disabled {
background: #bdc3c7;
cursor: not-allowed;
transform: none;
}

.captcha-input-group {
position: relative;
}

.captcha-input {
padding-left: 50px !important;
text-align: center;
font-family: 'Courier New', monospace;
font-size: 18px;
font-weight: bold;
letter-spacing: 3px;
direction: ltr;
}

.captcha-icon {
position: absolute;
left: 15px;
top: 50%;
transform: translateY(-50%);
color: #7f8c8d;
font-size: 18px;
z-index: 2;
}

.captcha-hint {
font-size: 12px;
color: #7f8c8d;
text-align: center;
margin-top: 8px;
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
}

.audio-captcha-btn {
background: none;
border: none;
color: #3498db;
cursor: pointer;
font-size: 14px;
margin-right: 10px;
}

.audio-captcha-btn:hover {
color: #2980b9;
}

.captcha-stats {
display: flex;
justify-content: space-between;
font-size: 11px;
color: #95a5a6;
margin-top: 5px;
}
