/* General Styling */
html { -webkit-text-size-adjust: 100%; } 

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
button {
  color: black;
  appearance: none;
  -webkit-appearance: none; /* ✅ iOS Safari */
  -moz-appearance: none;
  font-family: "Manrope", system-ui;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Manrope', sans-serif;
  background-color: #E9E8E7;
}

/* Loader inside button */
.inside-button-loading-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 10px;
}

/* Keyframes for spinning animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  box-sizing: border-box;
}

/* Login Container — same layout/radius, with vendor accent stripe */
.login-container {
  width: 600px;
  padding: 50px 70px 30px 70px;
  background-color: #fafaf8;
  box-shadow: 0 8px 22px rgba(166, 45, 13, 0.08), 0 4px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;              /* Prevent content overflow */
  border-radius: 8px;
  margin: 0 auto;
  box-sizing: border-box;
  border-top: 6px solid #A62D0D; /* ✅ vendor accent stripe */
}

/* Login Title */
.login-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: black;                /* ✅ vendor accent */
  margin-bottom: 35px;
}

/* Input Group */
.input-group { margin-bottom: 25px; }

.input-group label {
  font-size: 15px;
  color: #5a5a5a;
  margin-bottom: 10px;
  display: block;
  font-weight: bold;
}

.input-group input {
  border: none;
  box-shadow: none;
  background-color: white;
  outline: none;
  border-radius: 5px;
  margin-right: 10px;
  font-size: 0.8rem;
  border: 1px solid #cccccc;
  transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  width: 100%;
  padding: 15px 0 15px 10px;
  box-sizing: border-box;
}

/* Active (Focused) State — vendor accent */
.input-group input:focus {
  border-color: #A62D0D;                               /* ✅ vendor accent */
  box-shadow: 0 0 0 3px rgba(166, 45, 13, 0.18);       /* soft glow */
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 20px;
  gap: 50px;
}

.remember-me {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #5f5f5f;
}

.remember-me input { margin-right: 5px; }

.remember-me input[type="checkbox"] {
  accent-color: #A62D0D;         /* ✅ vendor accent */
  cursor: pointer;
}

.forgot-password {
  font-size: 14px;
  color: #A62D0D;                /* ✅ vendor accent */
  text-decoration: none;
}

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

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #A62D0D;         /* ✅ vendor accent */
  cursor: pointer;
}

.terms-group a {
  font-size: 0.9rem;
  text-decoration: none;
  line-height: 1.3rem;
  color: #A62D0D;                /* ✅ vendor accent */
}

.terms-group span {
  font-size: 0.9rem;
  line-height: 1.3rem;
  color: #666666;
}

/* Buttons (layout unchanged) */
.form-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 40px;
  align-items: center;
}

.btn {
  width: 48%;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;            /* ✅ radius unchanged */
  font-size: 14px;
  text-align: center;
  cursor: pointer;
}

/* Primary — vendor accent solid */
.login-btn {
  background-color: #A62D0D;     /* ✅ vendor accent solid */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease-in-out, border-radius 0.3s ease-in-out;
}

.login-btn:hover {
  background-color: #8F240B;     /* slightly darker */
  border-radius: 5px 0 5px 0;    /* keep your original hover radius trick */
}

/* Secondary link — keep as link (no border) */
.create-account-btn {
  color: #A62D0D;                /* ✅ vendor accent */
  text-decoration: none;
  text-align: center;
  transition: transform 0.3s ease-in-out;
  line-height: 1.2rem;
  font-size: 0.9rem;
}

.create-account-btn:hover { transform: scale(1.02); }

/* Back home */
.back-home {
  text-align: center;
  margin-top: 50px;
  display: block;
}

.back-btn {
  color: #8f8f8f;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  transition: background-color 0.3s, color 0.3s;
}

/* Switch Link */
.switch-link {
  text-align: center;
  margin-bottom: 20px;
}

.switch-link a {
  color: #A62D0D;                /* ✅ vendor accent */
  text-decoration: none;
  font-size: 14px;
}

.switch-link a:hover { text-decoration: underline; }

/* Confirmation message */
.confirmation-message {
  background-color: #fff2ee;
  padding: 20px;
  margin-top: 30px;
  border-radius: 5px;
  color: #4a1305;
  text-align: center;
  font-size: 1rem;
  line-height: 1.7rem;
  font-weight: 600;
  display: none;
  border-left: 4px solid #A62D0D;   /* ✅ vendor accent */
}

/* When visible */
.confirmation-message.visible { display: block; }

/* Mobile Specific Styling (Below 800px) */
@media (max-width: 600px) {
  .body { padding: 15px; }

  .login-wrapper {
    display: block;
    padding: 50px 25px 80px 25px; /* allow scroll, no hard centering */
  }

  .login-container {
    width: 100%;
    padding: 0px 10px;
    background-color: #E9E8E7;    /* keep your original mobile flattening */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0);
    border-top: none; 
  }

  .login-title {
    font-size: 1.7rem;
    line-height: 2.2rem;
    margin-bottom: 25px;
    color: #A62D0D;              /* vendor accent */
  }

  .switch-link { margin-bottom: 30px; }
  .switch-link a { font-size: 0.9rem; }

  .input-group input { background-color: #ffffffd6; }

  .form-buttons { flex-direction: column; }

  .form-options { justify-content: space-between; gap: 0; }
  
  .btn { width: 100%; margin: 0 auto; }

  .form-options { margin-top: 20px; }

  .forgot-password { font-size: 0.9rem; }

  .create-account-btn {
    line-height: 1rem;
    font-size: 0.9rem;
    margin-top: 20px;
  }

  .back-home { margin-top: 20px; }

  .confirmation-message {
    font-size: 0.9rem;
    line-height: 1.6rem;
  }
}

@media (max-width: 375px) {
  .body { padding: 15px; }

  .login-container {
    width: 100%;
    padding: 0px 10px;
    background-color: #E9E8E7;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0);
    margin-top: 15px;
    border-top: 6px solid #A62D0D; /* keep vendor stripe */
  }

  .login-title {
    font-size: 1.7rem;
    line-height: 2.2rem;
    margin-bottom: 25px;
  }

  .switch-link { margin-bottom: 30px; }

  .input-group input { background-color: #ffffffd6; }

  .form-buttons { flex-direction: column; }

  .btn { width: 100%; margin: 0 auto; }

  .form-options {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .forgot-password { font-size: 12px; margin-top: 10px; }

  .create-account-btn {
    line-height: 1rem;
    font-size: 0.9rem;
    margin-top: 20px;
  }

  .back-home { margin-top: 20px; }
}
