/* Mobile-First Login Design */

.mobile-login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mobile-login-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

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

.mobile-login-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.mobile-login-logo img {
    max-width: 120px;
    height: auto;
}

.mobile-login-title {
    color: #fff;
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 10px 0;
}

.mobile-login-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 400;
    margin: 0;
}

.mobile-login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    padding: 30px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.mobile-form-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 8px;
}

.mobile-input-wrapper {
    position: relative;
}

.mobile-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    pointer-events: none;
}

.mobile-form-input {
    width: 100%;
    height: 52px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0 16px 0 48px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}

.mobile-form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(103, 126, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(103, 126, 234, 0.1);
}

.mobile-form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

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

.mobile-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.mobile-checkbox-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    user-select: none;
}

.mobile-forgot-link {
    color: #667eea;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-forgot-link:hover {
    color: #8b9aff;
}

.mobile-submit-btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.mobile-submit-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.mobile-submit-btn:active {
    transform: translateY(0);
}

.mobile-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.mobile-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-divider-text {
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.mobile-social-login {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.mobile-social-btn {
    flex: 1;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-social-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.mobile-social-icon {
    font-size: 18px;
}

.mobile-signup-link {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.mobile-signup-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.mobile-signup-link a:hover {
    color: #8b9aff;
}

/* Captcha Styling */
.mobile-captcha-wrapper {
    margin-bottom: 20px;
}

.mobile-captcha-wrapper .captcha {
    border-radius: 12px;
    overflow: hidden;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-login-card {
    animation: fadeInUp 0.6s ease;
}

/* Responsive */
@media (max-width: 480px) {
    .mobile-login-wrapper {
        padding: 16px;
    }

    .mobile-login-card {
        padding: 24px 20px;
    }

    .mobile-login-title {
        font-size: 24px;
    }

    .mobile-form-input,
    .mobile-submit-btn {
        height: 48px;
    }

    .mobile-social-btn {
        height: 44px;
        font-size: 13px;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .mobile-login-wrapper {
        background: linear-gradient(135deg, #000000 0%, #0f0f23 100%);
    }
}

/* Loading state */
.mobile-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mobile-submit-btn.loading {
    position: relative;
    color: transparent;
}

.mobile-submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error state */
.mobile-form-input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.mobile-error-message {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Success state */
.mobile-form-input.success {
    border-color: #10b981;
}

/* Registration Form - Two Column Layout */
.mobile-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 576px) {
    .mobile-form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Registration Disabled Overlay */
.registration-disabled-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.registration-disabled-overlay .lock-icon {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Wider container for registration */
.mobile-login-container.registration-container {
    max-width: 480px;
}

/* Policy links styling */
.mobile-checkbox-label a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-checkbox-label a:hover {
    color: #8b9aff;
    text-decoration: underline;
}
