| .form { |
| display: flex; |
| flex-direction: column; |
| align-items: center; /* Center items horizontally */ |
| justify-content: center; /* Center items vertically */ |
| height: 50%; /* Occupy 40% of the viewport height */ |
| width:25%; |
| background-color: #f0f8ff; /* Light blue background */ |
| box-shadow: 3px 3px 5px 6px #ccc; |
| position: absolute; /* Position the form absolutely */ |
| top: 50%; /* Move to the middle of the viewport */ |
| left: 50%; /* Center horizontally */ |
| transform: translate(-50%, -50%); /* Adjust for centering */ |
| border-radius: 10px; /* Add rounded corners */ |
| padding: 20px; /* Add padding for better spacing */ |
| box-sizing: border-box; /* Include padding and border in width/height */ |
| |
| } |
| .form .logo{ |
| width: 100px; /* Set a fixed width for the logo */ |
| height: auto; /* Maintain aspect ratio */ |
| margin-bottom: 20px; /* Space between logo and form */ |
| } |
| |
| .form input { |
| margin: 5px; |
| padding: 5px; |
| border-radius: 5px; |
| border: 1px solid #ccc; |
| font-size: 16px; |
| width: 80%; /* Adjust width for better appearance */ |
| max-width: 300px; /* Limit maximum width */ |
| box-sizing: border-box; |
| } |
| |
| .form .email, |
| .form .password { |
| margin: 10px; |
| padding: 10px; |
| border-radius: 5px; |
| border: 1px solid #ccc; |
| font-size: 16px; |
| width: 80%; |
| max-width: 300px; |
| } |
| |
| .form .submit { |
| margin: 10px; |
| padding: 10px; |
| border-radius: 5px; |
| border: 1px solid #ccc; |
| font-size: 16px; |
| background-color: #4CAF50; /* Green */ |
| color: white; |
| cursor: pointer; |
| width: 80%; |
| max-width: 300px; |
| } |
| |
| .form .submit:hover { |
| background-color: #45a049; /* Darker green */ |
| } |
| |
| .form .register { |
| margin: 10px; |
| padding: 10px; |
| border-radius: 5px; |
| border: none; |
| font-size: 16px; |
| background-color: #007BFF; /* Blue */ |
| color: white; |
| cursor: pointer; |
| width: 80%; |
| max-width: 300px; |
| } |
| |
| .sendCode { |
| padding:5px; |
| border-radius: 5px; |
| border: none; |
| font-size: 8px; |
| background-color: #ff7300; /* Blue */ |
| color: white; |
| cursor: pointer; |
| width: 60px; |
| max-width: 300px; |
| } |
| |
| .form .register:hover { |
| background-color: #0056b3; /* Darker blue */ |
| } |
| |
| .form .forget{ |
| border: none; |
| text-decoration: underline; |
| align-content: flex-end; |
| |
| } |
| |
| .form .forget:hover{ |
| border: none; |
| text-decoration: underline; |
| align-content: flex-end; |
| color: #007BFF; /* Blue */ |
| } |
| |
| .back { |
| background: none; |
| border: none; |
| text-decoration: underline; |
| cursor: pointer; |
| margin-top: 8px; |
| font-size: 16px; |
| padding: 0; |
| transition: color 0.2s; |
| } |
| |
| .back:hover { |
| color: #0056b3; |
| text-decoration: underline; |
| } |