html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  overflow-x:hidden;
  font-family: 'Arial Narrow', Arial, sans-serif;
}
*,:before, *:after {
  -webkit-box-sizing: inherit;
  -moz-box-sizing: inherit;
  box-sizing: inherit;
}
/* all colors*/
:root{
  --Black: #131515;
  --Red: #8c001a;
  --Gray: #7f7b82;
  --White: #fff;
}

body {
  padding: 0;
  margin: 0;
}
/*index.html*/
.index{
height: 100vh;
}
.login-background{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
.indexbody{
align-items: center;
height: 100%;
background: linear-gradient(135deg, var(--Black) 0%, #f5576c 100%);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
display: flex;
justify-content: center;
}

.login {
  height: auto;
  background-color: rgba(34, 34, 34, 0.8);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  max-width: 400px;
  width: 100%;
  color: var(--White);
  z-index: 10;
  display: flex;
  flex-direction: column;
}


.login h1 {
font-size: 2rem;
text-align: center;
color: var(--red);
margin-bottom: 1rem;
}
.login h2 {
font-size: 1.3rem;
color: var(--white);
margin-bottom: 1rem;
}

form {
display: flex;
flex-direction: column;
gap: 1rem;
}


form p {
display: flex;
flex-direction: column;
gap: 0.3rem;
}

label {
font-size: 0.9rem;
color: var(--gray);
}

input[type="text"],
input[type="email"],
input[type="password"] {
background-color: var(--input-bg);
border: 1px solid var(--input-border);
padding: 0.6rem 0.8rem;
border-radius: 0.4rem;
color: var(--white);
font-size: 0.95rem;
transition: 0.2s ease;
border: 1px solid var(--Gray);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
border-color: var(--red);
background-color: #333;
outline: none;
}


input[type="submit"] {
background-color: var(--red);
color: var(--white);
border: none;
padding: 0.75rem;
font-size: 1rem;
border-radius: 0.4rem;
cursor: pointer;
transition:  0.3s ease;
background: var(--Gray)
}

input[type="submit"]:hover {
background-color: #a30020;
}


.form {
display: none;
opacity: 0;
transform: scale(0.95);
transition: all 0.3s ease;
}

.form.active {
display: block;
opacity: 1;
transform: scale(1);
}

.form-toggle {
margin-bottom: 1em;
display: flex;
gap: 1em;
justify-content: center;
}

.form-toggle button {
padding: 0.5em 1em;
cursor: pointer;
font-weight: bold;
border: none;
background-color: #444;
color: var(--White);
border-radius: 5px;
transition: 0.2s ease;
}

.form-toggle button:hover {
background-color: #666;
}
 .error-message {
      color: red;
      background: #fdd;
      padding: 10px;
      margin: 10px 0;
      border: 1px solid red;
    }
    .success-message {
      color: green;
      background: #dfd;
      padding: 10px;
      margin: 10px 0;
      border: 1px solid green;
    }