package com.juihost.photoeditor.ui import androidx.compose.foundation.background import androidx.compose.foundation.layout.* import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material3.* import androidx.compose.runtime.* import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.text.input.PasswordVisualTransformation import androidx.compose.ui.unit.dp @Composable fun LoginScreen(onLogin:(String,String)->Unit){var email by remember{mutableStateOf("")};var password by remember{mutableStateOf("")};Column(Modifier.fillMaxSize().background(Color(0xFF090713)).padding(24.dp),horizontalAlignment=Alignment.CenterHorizontally,verticalArrangement=Arrangement.Center){Text("✦",color=Color(0xFFB68AFF),style=MaterialTheme.typography.displayLarge);Text("Photo Editor Pro",color=Color.White,style=MaterialTheme.typography.headlineMedium);Text("Create something extraordinary",color=Color.LightGray);Spacer(Modifier.height(28.dp));OutlinedTextField(email,{email=it},label={Text("Email")},singleLine=true);OutlinedTextField(password,{password=it},label={Text("Password")},visualTransformation=PasswordVisualTransformation(),singleLine=true);Spacer(Modifier.height(18.dp));Button(onClick={onLogin(email.trim(),password)},enabled=email.isNotBlank()&&password.isNotBlank(),shape=RoundedCornerShape(14.dp),modifier=Modifier.fillMaxWidth().height(54.dp),colors=ButtonDefaults.buttonColors(containerColor=Color(0xFF9257F2))){Text("Continue")}}}