/* =====================================================
   AUTH VIEWS - Login, Register, Prehome
   ===================================================== */

.auth-wrapper {
  width: 100%;
  min-height: 100svh;
}

.auth-view {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 767px) {
  .auth-view {
    justify-content: flex-start;
    padding-top: 48px;
  }
}

@media (min-width: 768px) {
  .auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  }
  
  .auth-view {
    max-width: 420px;
  }
}

.auth-view h2 { 
  margin: 12px 0 24px; 
  font-weight: 600; 
  color: #000; 
  font-size: 24px;
  text-align: center;
}

.auth-view form { 
  width: 100%; 
  display: flex; 
  flex-direction: column; 
  gap: 14px; 
}

.auth-view input[type="text"],
.auth-view input[type="email"],
.auth-view input[type="password"],
.auth-view input[type="file"],
.auth-view button[type="submit"] {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
}

.auth-view input[type="text"],
.auth-view input[type="email"],
.auth-view input[type="password"],
.auth-view input[type="file"] {
  border: 1px solid #ddd;
  background: #f8f8f8;
  color: #000;
  transition: border-color 0.2s, background 0.2s;
}

.auth-view input:focus {
  outline: none;
  border-color: #000;
  background: #fff;
}

.auth-view button[type="submit"] { 
  padding: 14px; 
  border: none; 
  border-radius: 12px; 
  background: #000; 
  color: #fff; 
  cursor: pointer; 
  font-weight: 600;
  font-size: 15px;
  margin-top: 8px;
  transition: background 0.2s;
}

.auth-view button[type="submit"]:hover { 
  background: #333; 
}

.auth-view button[type="submit"]:disabled { 
  background: #ccc; 
  cursor: not-allowed; 
}

.switch { 
  color: #666; 
  margin-top: 20px;
  font-size: 14px;
}

.switch a { 
  color: #000; 
  text-decoration: none; 
  font-weight: 600; 
}

.switch a:hover {
  text-decoration: underline;
}

.error { 
  color: #f44336; 
  white-space: pre-wrap; 
  margin-top: 12px; 
  text-align: center;
  font-size: 14px;
}

.hint { 
  color: #666; 
  font-size: 13px; 
  margin-top: -8px;
}

.ok { 
  color: #4caf50; 
}

.invalid { 
  border-color: #f44336 !important; 
}

.google-btn {
  margin-top: 12px; 
  width: 100%; 
  padding: 14px 16px; 
  border-radius: 12px; 
  border: 1px solid #ddd;
  background: #fff; 
  color: #000; 
  cursor: pointer; 
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, border-color 0.2s;
}

.google-btn:hover { 
  background: #f5f5f5; 
  border-color: #ccc;
}

.warning-box {
  background: #fff3cd;
  border: 1px solid #ffc107;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #856404;
  width: 100%;
}

@media (max-width: 480px) {
  .auth-view {
    padding: 20px 24px;
    max-width: 100%;
  }
  
  .auth-view h2 {
    font-size: 22px;
  }
  
  .logo {
    width: 90px;
  }
}
