/**
 * Mobile Login Layout Styles
 * RTL-first, uses CSS logical properties.
 */

.mobile-login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-primary);
    padding: 2rem;
    overflow-y: auto;
}

.mobile-logo-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.35);
    animation: mobile-float 6s ease-in-out infinite;
}

.mobile-logo-icon {
    width: 40px;
    height: 40px;
    color: white;
}

/* Input group — icon on inline-start (right in RTL) */
.mobile-input-group {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 0.25rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    direction: inherit;
}

.mobile-input-group:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

.mobile-input-icon {
    padding: 0 1rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    order: -1; /* Always first in flex, which is inline-start in both directions */
}

.mobile-input-group:focus-within .mobile-input-icon {
    color: #6366f1;
}

.mobile-form-control {
    border: none;
    background: transparent;
    padding: 1rem 0;
    width: 100%;
    color: var(--color-text-primary);
    font-size: 1rem;
    outline: none;
    height: 56px;
    text-align: start;
    direction: inherit;
}

.mobile-form-control::placeholder {
    color: var(--color-text-muted);
    opacity: 0.7;
}

/* Password toggle — inline-end side */
.mobile-password-toggle {
    padding-inline-end: 0.75rem;
}

.mobile-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1rem;
    width: 100%;
    height: 60px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mobile-btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.mobile-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid var(--color-border);
    appearance: none;
    background: var(--color-bg-tertiary);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.mobile-checkbox:checked {
    background: #6366f1;
    border-color: #6366f1;
}

.mobile-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes mobile-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
