/* =============================================
   SIGNUP / REGISTRATION PAGE
   BAKI-LEX THEME (FINAL)
   ============================================= */

:root {
  --primary: #2c1b12;        /* deep brown */
  --accent: #c8a96a;         /* gold */
  --success: #28a745;
  --danger: #dc3545;
  --border: #e6dccf;
  --shadow: 0 10px 40px rgba(0,0,0,0.2);
  --text: #2c1b12;
  --text-light: #7a6a58;
  --bg: #f5efe6;             /* parchment */
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Background with doodles */
html, body {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  background:
    url('../images/background.png') repeat,
    var(--bg);
  background-size: 600px;   /* 🔥 keeps doodles subtle */
  color: var(--text);
}
.google-btn {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: #3b2a20;
  color: #f5efe6;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Montserrat', sans-serif;
  width: 100%;
}
/* Center layout */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* Main card */
.formtab {
  width: 100%;
  max-width: 440px;
  background: #2c1b12;
  color: #f5efe6;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  border: 2px solid var(--accent);
}
.head {
  text-align: center;
}

.head img {
  width: 190px;
  height: auto;
}
/* Title */
.speak2 {
    text-align: center;
  padding: 1rem 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 50px;
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(83, 81, 81, 0.25);
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Labels */
label {
  font-weight: 500;
  color: #d6c6b2;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

/* Inputs */
input {
  height: 50px;
  padding: 0 1.2rem;
  border: 1px solid #3b2a20;
  border-radius: 0.75rem;
  font-size: 1rem;
  background: #1f140d;
  color: #f5efe6;
  transition: all 0.2s ease;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.2);
}

/* Primary button */
.signupbtn {
  height: 40px;
  margin-top: 0px;
  background: var(--accent);
  color: #2c1b12;
  border: none;
  border-radius: 9999px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(200, 169, 106, 0.3);
}

.signupbtn:hover {
  transform: translateY(-2px);
  background: #b89655;
  box-shadow: 0 10px 25px rgba(200, 169, 106, 0.4);
}

.signupbtn:active {
  transform: translateY(0);
}

/* Secondary button */
.loginbtn {
  height: 48px;
  margin-top: 0.8rem;
  background: #3b2a20;
  color: #f5efe6;
  border: none;
  border-radius: 9999px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.loginbtn:hover {
  background: #4a3428;
  transform: translateY(-1px);
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field .input {
  width: 100%;
  padding-right: 40px; /* space for eye icon */
}

.toggle-eye {
  position: absolute;
  right: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 18px;
  opacity: 0.7;
}

.toggle-eye:hover {
  opacity: 1;
}

/* Messages */
.add-teacher-error,
.email-sent-message {
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.3rem;
  margin-top: 0.6rem;
}

.add-teacher-error {
  color: var(--danger);
}

.email-sent-message {
  color: var(--success);
}

/* Already have account */
.already {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  text-align: center;
  color: #cbbba6;
}

.already a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.already a:hover {
  color: #b89655;
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 480px) {
  .formtab {
    padding: 2rem 1.5rem;
    border-radius: 1.25rem;
    max-width: 92vw;
  }

  .speak2 {
    font-size: 2.4rem;
  }
}