/* ===============================
   GLOBAL RESET
================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* enable native smooth scrolling when links jump around */
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #fff;
  line-height: 1.6;
  color: #333;    
  top: 0px !important;
  overflow-wrap: break-word; /* FIX: Prevents long emails/passwords from causing horizontal scrolling */
  word-wrap: break-word;
  overflow-x: clip; /* Safely hides horizontal overflow */
}

h1, h2, h3 {
  text-align: center;
}

/* google translate */

.goog-te-banner-frame.skiptranslate {
  display: none !important;
}


.goog-te-balloon-frame {
  display: none !important;
}

#goog-gt-tt {
  display: none !important;
}

/* ===============================
   NAVBAR (Desktop First)
================================== */
/* ===============================
   LOGIN PAGE
================================== */

.login-container {
  background: rgba(255, 255, 255, 0.98);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
  max-width: 460px;
  width: 100%;
  text-align: left;
  margin: 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.login-main {
  /* background: linear-gradient(180deg, #1f2937 0%, #111827 48%, #0f172a 100%); */
   background: linear-gradient(135deg, #352816 30%, #6a040f 100%);
  min-height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 24px;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h2 {
  font-size: 32px;
  color: #0f172a;
  margin-bottom: 10px;
}

.login-header p {
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 14px;
  font-size: 15px;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
  outline: none;
}

.password-wrapper {
  position: relative;
}

.toggle-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 13px;
  color: black;
  user-select: none;
  font-weight: 700;
}

.btn-primary,
.btn-secondary,
button[type="submit"] {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #352816 30%, #6a040f 100%);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0f172a 0%, #1f2937 100%);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #1f2937;
  border: 1px solid rgba(15, 23, 42, 0.15);
  margin-top: 12px;
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.04);
}

.form-footer {
  margin-top: 14px;
  text-align: left;
}

.forgot-link {
  font-size: 14px;
  color: black;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.message {
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 500;
  min-height: 22px;
  color: #dc2626;
}

.register {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #475569;
  text-align: center;
}

.register p {
  margin: 0;
}

.register button {
  width: auto;
  padding: 12px 28px;
}


/* ===============================
   RESPONSIVE DESIGN
================================== */
@media (max-width: 768px) {
  .login-main {
    padding: 40px 15px;
  }

  .login-container {
    padding: 30px;
  }
}

.auth-footer {
  text-align: center;
  padding: 18px 16px 22px;
  color: rgba(55, 65, 81, 0.75);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: transparent;
}

@media (max-width: 480px) {
  .login-main {
    padding: 20px 10px;
  }

  .login-container {
    padding: 25px 20px;
  }

  .message {
    font-size: 14px;
  }

  input {
    font-size: 16px; /* Prevents iOS Safari auto-zoom on input focus */
    padding: 12px 10px; /* Better touch target for mobile devices */
  }

  button {
    padding: 12px;
    font-size: 15px; /* Improved tap readability */
  }
}
