/* Reset and base styles */

/* Remove default margin and padding from all elements and pseudo-elements */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Include padding and border in element's total width and height */
}

/* Set base font properties and background color for the html element */
html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: #222;
  -webkit-font-smoothing: antialiased; /* Improve font rendering on WebKit */
  -moz-osx-font-smoothing: grayscale;  /* Improve font rendering on Firefox */
}

/* Set base styles for body */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed; /* Optimize text rendering for speed */
}

/* Remove default styles from links */
a {
  color: inherit;
  text-decoration: none;
}

/* Add underline on hover and focus for better accessibility */
a:hover,
a:focus {
  text-decoration: none;
  outline: none;
}

h1,h2,h3,h4,h5,h6{
    margin: 0px;
    padding: 0px;
}

/* Remove default list styles */
ul,
ol {
  list-style: none;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit; /* Inherit font styles for consistency */
}

/* Style form inputs and textareas */
input,
textarea {
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.5em;
  resize: vertical; /* Allow vertical resizing only */
}

/* Make images responsive */
img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* form style */
body{
    min-height: 100vh;
    background-color: #f0e6d2;
}

.formSec{
    background-color: aliceblue;
    width: 400px;
    margin: 0 auto;
    padding: 15px 40px;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0px 0px 10px 4px rgba(0, 0, 0, 0.233);
}

.formSec h1{
    text-align: center;
    margin-bottom: 20px;
}

.form{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btnGroup{
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.btnGroup button,a{
    text-align: center;
    width: 100%;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    background-color: #222;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 3ms ease-in;
}

.btnGroup button:hover{
    text-decoration: none;
    background-color: #222222cf;
}

.btnGroup a:hover{
    text-decoration: none;
    background-color: #222222cf;
}

@media (max-width: 420px) {
    .formSec{
        width: 300px;
        padding: 15px 10px;
    }
}