: GridLayout: cols: 1 GridLayout: cols: 1 padding: 15, 15 spacing: 20, 20 Label: text: "User Login" font_size: "20sp" TextInput: id: username hint_text: "Username" TextInput: id: password password: True hint_text: "Password" RelativeLayout: Button: text: "Login" on_press: root.login(root.ids.username.text, root.ids.password.text) size_hint: 0.3, 0.5 pos_hint: {"center_x": 0.5, "center_y": 0.6} Label: id: login_wrong text: "" GridLayout: cols: 2 size_hint: 0.2, 0.2 padding: 10, 10 spacing: 10, 0 Button: text: "Forgot Password?" background_color: 1, 1, 1, 0 opacity: 1 if self.state == "normal" else 0.5 color: 0.1, 0.7, 1, 1 Button: text: "Sign Up" on_press: root.sign_up() background_color: 1, 1, 1 , 0 opacity: 1 if self.state == "normal" else 0.5 color: 0.1, 0.7, 1, 1 : HomeScreen: name: "home_screen"