/* WhatsAPI Pro - Auth Pages Styles - Bilingual Support */
:root {
    --primary: #25D366;
    --primary-dark: #128C7E;
    --bg-dark: #0a0f1c;
    --bg-card: #111827;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-color: rgba(255,255,255,0.1);
    --danger: #ef4444;
    --success: #10b981;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 211, 102, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(18, 140, 126, 0.15) 0%, transparent 50%);
    z-index: -1;
}

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

.login-logo {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.3);
}

.login-logo h1 {
    font-size: 2rem;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
}

.login-logo h1 span { color: var(--primary); }

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.login-card h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.login-card > p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
}

/* RTL Support for input icons */
[dir="rtl"] .input-wrapper i {
    right: 15px;
    left: auto;
}

[dir="ltr"] .input-wrapper i {
    left: 15px;
    right: auto;
}

.input-wrapper i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

[dir="rtl"] .form-group input {
    padding: 14px 45px 14px 15px;
}

[dir="ltr"] .form-group input {
    padding: 14px 15px 14px 45px;
}

.form-group input {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.form-group input::placeholder { color: var(--text-secondary); }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}

.remember-me input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: var(--bg-card);
    padding: 0 15px;
    color: var(--text-secondary);
    position: relative;
}

.register-link {
    text-align: center;
    color: var(--text-secondary);
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover { text-decoration: underline; }

.back-link {
    text-align: center;
    margin-top: 25px;
}

.back-link a {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-link a:hover { color: var(--primary); }

.alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert-success {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: var(--primary);
}

/* Responsive */
@media (max-width: 480px) {
    .login-card { padding: 30px 20px; }
    .login-logo h1 { font-size: 1.5rem; }
}
