/* login.css */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f5f7fa;
  color: #111827;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background-color: #D36C7C;
  /* Indigo-800 */
  color: white;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1200;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.company {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.company img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.menu-toggle {
  font-size: 1.75rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: none;
  /* Hide on desktop */
}

/* Page Wrapper */
.page-wrapper {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 20px 60px;
  min-height: calc(100vh - 56px - 40px);
  background: url('/static/Background.png') no-repeat center center fixed;
  background-size: cover;
}


/* Login Form */
.login-form {
  background: white;
  padding: 2.5rem 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
  margin-top: 50px;
}

.login-form {
  background: rgba(255, 255, 255, 0.96);
}


.login-form h1 {
  font-weight: 700;
  margin-bottom: 2rem;
  color: #D36C7C;
  font-size: 2rem;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #374151;
  font-size: 1rem;
}

.form-group input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1.8px solid #cbd5e1;
  /* Gray-300 */
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  border-color: #f08585;
  /* Blue-600 */
  outline: none;
  box-shadow: 0 0 4px #D36C7C;
}

/* Login Button */
.login-btn {
  width: 100%;
  background-color: #D36C7C;
  /* Blue-600 */
  color: white;
  font-weight: 700;
  padding: 0.75rem 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.15rem;
  transition: background-color 0.3s ease;
  margin-top: 0.5rem;
}

.login-btn:hover,
.login-btn:focus {
  background-color: #f08585;
  /* Blue-800 */
  outline: none;
}

/* Forgot Password */
.forgot-password {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: right;
}

.forgot-password a {
  color: #D36C7C;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}

.forgot-password a:hover,
.forgot-password a:focus {
  color: #f08585;
  outline: none;
}

/* Divider */
.divider {
  margin: 2rem 0;
  text-align: center;
  position: relative;
  color: #9ca3af;
  /* Gray-400 */
  font-weight: 600;
  font-size: 0.95rem;
}

.divider span {
  background: white;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: #d1d5db;
  /* Gray-300 */
  transform: translateY(-50%);
  z-index: 0;
}

/* Google Button */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: white;
  border: 2px solid #D36C7C;
  color: #D36C7C;
  font-weight: 600;
  padding: 0.6rem 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  width: 100%;
  user-select: none;
}

.google-btn:hover,
.google-btn:focus {
  background-color: #D36C7C;
  color: white;
  outline: none;
}

.google-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Register Link */
.register-link {
  margin-top: 1.8rem;
  font-size: 0.95rem;
  color: #374151;
}

.register-link a {
  color: #D36C7C;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease;
}

.register-link a:hover,
.register-link a:focus {
  color: #f08585;
  outline: none;
}

/* Footer */
.auth-footer {
  background-color: #D36C7C;
  color: white;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  user-select: none;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 576px) {
  .login-form {
    padding: 2rem 1.5rem;
    max-width: 320px;
  }

  .menu-toggle {
    display: block;
  }
}

.error-message {
  color: #dc2626;
  /* red-600 */
  background-color: #fee2e2;
  /* red-100 */
  border: 1px solid #fca5a5;
  /* red-300 */
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-weight: 600;
}