2026-07-15 21:36:48 +05:30

129 lines
2.8 KiB
TypeScript

import { StyleSheet } from 'react-native';
import { ThemeColors } from '../../theme';
export const getStyles = (colors: ThemeColors) =>
StyleSheet.create({
container: {
flex: 1,
backgroundColor: colors.background,
},
scrollContainer: {
flexGrow: 1,
justifyContent: 'center',
padding: 24,
},
headerContainer: {
alignItems: 'center',
marginBottom: 32,
},
logoCircle: {
width: 80,
height: 80,
borderRadius: 40,
backgroundColor: colors.border,
justifyContent: 'center',
alignItems: 'center',
marginBottom: 16,
shadowColor: colors.icon,
shadowOffset: { width: 0, height: 4 },
shadowOpacity: 0.3,
shadowRadius: 10,
elevation: 8,
},
title: {
fontSize: 28,
fontWeight: '800',
color: colors.text,
letterSpacing: 0.5,
},
subtitle: {
fontSize: 14,
color: colors.textSecondary,
marginTop: 8,
textAlign: 'center',
},
formCard: {
backgroundColor: colors.card,
borderRadius: 16,
padding: 24,
shadowColor: '#000',
shadowOffset: { width: 0, height: 10 },
shadowOpacity: 0.25,
shadowRadius: 15,
elevation: 10,
},
errorBanner: {
flexDirection: 'row',
alignItems: 'center',
backgroundColor: '#451A1A',
borderRadius: 8,
padding: 12,
marginBottom: 16,
borderWidth: 1,
borderColor: '#7F1D1D',
},
errorText: {
color: '#FCA5A5',
fontSize: 13,
marginLeft: 8,
flex: 1,
},
inputContainer: {
marginBottom: 20,
},
label: {
fontSize: 13,
fontWeight: '600',
color: colors.textSecondary,
marginBottom: 8,
textTransform: 'uppercase',
letterSpacing: 0.5,
},
inputWrapper: {
flexDirection: 'row',
alignItems: 'center',
backgroundColor: colors.background,
borderRadius: 10,
borderWidth: 1,
borderBottomColor: colors.border,
borderColor: colors.border,
paddingHorizontal: 12,
},
inputIcon: {
marginRight: 10,
},
input: {
flex: 1,
height: 48,
color: colors.text,
fontSize: 15,
},
button: {
backgroundColor: colors.icon,
borderRadius: 10,
height: 50,
justifyContent: 'center',
alignItems: 'center',
marginTop: 8,
shadowColor: colors.icon,
shadowOffset: { width: 0, height: 4 },
shadowOpacity: 0.4,
shadowRadius: 6,
elevation: 5,
},
buttonText: {
color: '#FFFFFF',
fontSize: 16,
fontWeight: '700',
letterSpacing: 0.5,
},
footer: {
alignItems: 'center',
marginTop: 32,
},
footerText: {
fontSize: 12,
color: colors.textMuted,
},
});