/* style.css */

/* Reset */
* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Black top welcome section */
.welcome-section {
  height: 30vh;
  background-color: black;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.8em;
  font-weight: 700;
  color: #00ffcc;
  margin-bottom: 10px;
}

.welcome-section h2 {
  font-size: 2em;
  margin: 0;
  margin-top: 20px;
}
.error-message {
  margin-top: 15px;
  color: #d9534f;
  font-weight: bold;
  text-align: center;
  font-size: 24px;
  white-space: normal; /* ✅ Allow line breaks */
}

/* White section with buttons */
.options-section {
  min-height: 70vh;
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}


/* White section with login/signup form */
.form-section {
  flex: 1;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding:20px 20px;
}

.login-container {
  width: 100%;
  max-width: 400px;
}


form {
  display: flex;
  flex-direction: column;
}

/* Inputs and select styling */
input[type="text"],
input[type="password"],
select, 
input[type="number"] {
  padding: 12px 15px;
  margin-bottom: 10px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  transition: border-color 0.3s;
  appearance: none; /* Remove default arrow for select */
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus,
input[type="number"]:focus {
  border-color: #00ffcc;
  outline: none;
}

button {
  padding: 12px;
  background-color: black;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s;
      margin-top: 25px;
}

button:hover {
  background-color: #00b399;
}

.error-message {
  margin-top: 15px;
  color: #d9534f;
  font-weight: bold;
  text-align: center;
  font-size: 24px;
}

.error-message a {
    color: #fff !important;
}


/* Reuse styles for select and inputs (already defined earlier) */

.styled-select,
input[type="text"],
input[type="password"],
input[type="number"] {
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  transition: border-color 0.3s;
  font-family: inherit;
  box-sizing: border-box;
}

.styled-select {
    -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  font-family: inherit;
  transition: border-color 0.3s;
  box-sizing: border-box;
  background-color: white;
  appearance: none; /* Remove default arrow */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
  cursor: pointer;
}

.styled-select:focus {
  border-color: #00ffcc;
  outline: none;
}

/* Hide/show fields with this class */
.hidden {
  display: none;
}


/* Responsive: Slightly smaller for mobile screens */
@media (max-width: 480px) {
  .logo-text {
    font-size: 1.6em; /* Reduced from 2em */
    margin: 10px 0;
  }

  .welcome-section h2 {
    font-size: 1.4em; /* Reduced from 1.6em */
    margin-top: 2px;
  }
  
  .login-container {
    padding: 0 10px; /* Slightly tighter padding */
  }

  input[type="text"],
  input[type="password"],
  select,
  input[type="number"] {
    font-size: 0.95em; /* Reduced from 1.1em */
    padding: 10px 12px; /* Reduced padding */
  }

  button,
  .options-section button {
    font-size: 0.95em; /* Reduced from 1.1em */
    padding: 10px 12px; /* Reduced padding */
  }

  .options-section a {
    max-width: 220px; /* Slightly narrower buttons */
  }

  h2.login-title {
    font-size: 1.3em; /* Slightly reduced */
       margin: 0 0 10px 0;
  }

  label {
    font-size: 0.95em; /* Slightly smaller labels */
  }

  .error-message {
    font-size: 18px; /* Smaller error font for mobile */
        margin-top: 5px !important;
    margin: 0;
  }
  
  /* White section with buttons */
.options-section {
  min-height: 80vh;
}

/* Black top welcome section */
.welcome-section {
  height: 20vh;
}

.form-section{
    padding: 5px;
}

}

/* EMAIL CSS */

.login-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background-color: #0c1022;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.login-box h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}


h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

label {
    display: block;
    margin: 10px 0 5px;
    color: #ddd;
}

.login-box input[type="text"],
.login-box input[type="password"],
.login-box input[type="email"] {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    margin-bottom: 15px;
    background-color: #1a1e35;
    color: #fff;
}

.login-box button {
    width: 100%;
    padding: 10px;
    background-color: #0ef;
    border: none;
    color: #000;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #0ef;
    border: none;
    color: #000;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

a{
  color: #fff !important;
}



