/* =============================================
   LOGIN PAGE — BAKI-LEX THEME (UPDATED)
   ============================================= */

:root {
  --primary: #2c1b12;
  --accent: #c8a96a;
  --danger: #dc3545;
  --border: #e6dccf;
  --shadow: 0 10px 40px rgba(0,0,0,0.2);
  --text: #2c1b12;
  --text-light: #7a6a58;
  --bg: #f5efe6;
}

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

html, body {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  background:
    url('../images/background.png') repeat,
    var(--bg);
  background-size: 600px;
  color: var(--text);
  overflow: hidden;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* ================= MAIN CARD ================= */
.formtab {
  width: 100%;
  max-width: 420px;
  background: #2c1b12;
  color: #f5efe6;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  border: 2px solid var(--accent);
  position: relative;
  z-index: 2;
}

/* ================= 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;
}

label {
  font-weight: 500;
  color: #d6c6b2;
  font-size: 0.95rem;
}

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);
}

/* ================= LOGIN BUTTON ================= */
.logloginbtn {
  height: 52px;
  margin-top: 4px;
  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);
}

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

.logloginbtn:active {
  transform: scale(0.98);
}
.head {
  text-align: center;
}
.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;
}
.head img {
  width: 190px;
  height: auto;
}
/* ================= GOOGLE BUTTON ================= */
.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;
}

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

.google-btn img {
  width: 18px;
  height: 18px;
}

/* ================= ERROR ================= */
.login-error {
  color: var(--danger);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.4rem;
}

/* ================= LINKS ================= */
.newuser {
  font-size: 0.95rem;
  text-align: center;
  color: #cbbba6;
  margin-top: 1.4rem;
}

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

.newuser 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.3rem;
  }
}