/* auth.css - Clean, modern styles for login/register */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css");

:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --background-color: #f9fafb;
  --input-border: #d1d5db;
  --text-color: #111827;
  --error-color: #dc2626;
  --success-color: #16a34a;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  font-family: var(--font-family);
  color: var(--text-color);
  min-height: 100vh;
}


/* Reset and base layout */
.auth-split {
  display: flex;
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
}

.auth-visual {
  flex: 1;
  background: linear-gradient(rgba(0, 60, 100, 0.7), rgba(0, 60, 100, 0.7)),
              url('https://images.unsplash.com/photo-1605902711622-cfb43c44367f') no-repeat center center;
  background-size: cover;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  text-align: center;
}

.auth-visual h1 {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.auth-visual p {
  font-size: 1.2rem;
  max-width: 480px;
}

.auth-form-wrapper {
    flex: 1;
    background-color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.04);
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin: 10px 0 40px;
}


.auth-heading {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #222;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-form label {
  font-weight: 500;
  margin-bottom: 0.25rem;
  display: block;
}

.auth-form input {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  display: block;
  box-sizing: border-box;
}

.auth-form input:focus {
  border-color: #007bff;
  outline: none;
  background-color: #fff;
}

.auth-button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap; /* optional for responsiveness */
}


.auth-button {
  padding: 0.75rem;
  background-color: #004471;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}




.auth-button:hover {
  background-color: #002f66;
}

.auth-footer {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.auth-footer a {
  color: #004471;
  font-weight: 500;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.separator {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.85rem;
  margin: 2rem 0;
}

.separator::before,
.separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ccc;
  margin: 0 10px;
}

.social-logins {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 30px;
  background: white;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s;
  color: #333;
  position: relative;
}

.social-btn:hover {
  background-color: #f1f1f1;
}

.social-btn i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.social-btn.google::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/google/google-original.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.social-btn.phone::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('https://cdn.jsdelivr.net/npm/@tabler/icons/icons/phone.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.social-btn.outlook::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('https://res-1.cdn.office.net/files/fabric-cdn-prod_20221201.001/assets/brand-icons/product/png/outlook_16x1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}


.success-msg {
  background-color: #e6ffec;
  color: #0a7b43;
  padding: 0.75rem 1rem;
  border-left: 4px solid #0a7b43;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.user-id-readonly {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f2f2f2;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #444;
}

.user-id-readonly .edit-btn {
  background: none;
  border: none;
  color: #007bff;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
}

.user-id-readonly .edit-btn:hover {
  text-decoration: none;
}

/* Mobile Responsiveness - Option C: Form Only on Mobile */
@media (max-width: 1024px) {
  .auth-split {
    min-height: auto;
  }
  .auth-visual {
    display: none !important;
  }
  .auth-form-wrapper {
    flex: 0 0 100%;
    padding: 40px 20px;
  }
  .auth-form-container {
    max-width: 100%;
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  body {
    height: auto;
  }
  .auth-split {
    min-height: 100vh;
    flex-direction: column;
  }
  .auth-visual {
    display: none !important;
  }
  .auth-form-wrapper {
    flex: 0 0 100%;
    padding: 30px 16px;
    justify-content: flex-start;
    padding-top: 40px;
  }
  .auth-form-container {
    max-width: 100%;
    padding: 25px 16px;
    margin: 0;
    box-shadow: none;
  }
  .auth-heading {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }
  .auth-form label {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }
  .auth-form input {
    padding: 12px;
    font-size: 16px;
    margin-bottom: 12px;
  }
  .auth-form {
    gap: 1rem;
  }
  .auth-button {
    padding: 12px;
    font-size: 0.95rem;
  }
  .auth-button-group {
    flex-direction: column;
    gap: 0.75rem;
  }
  .auth-button-group .auth-button {
    width: 100%;
  }
  .auth-footer {
    font-size: 0.85rem;
    margin-top: 12px;
  }
  .separator {
    margin: 1.5rem 0;
  }
  .social-logins {
    gap: 0.6rem;
  }
  .social-btn {
    padding: 11px 0.9rem;
    font-size: 0.9rem;
  }
  .success-msg {
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
  }
  .user-id-readonly {
    padding: 0.5rem 0.65rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .auth-form-wrapper {
    padding: 20px 12px;
    padding-top: 30px;
  }
  .auth-form-container {
    padding: 20px 12px;
  }
  .auth-heading {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  .auth-form label {
    font-size: 0.9rem;
  }
  .auth-form input {
    padding: 11px;
    font-size: 16px;
    margin-bottom: 11px;
  }
  .auth-button {
    padding: 11px;
    font-size: 0.9rem;
  }
  .social-btn {
    padding: 10px 0.8rem;
    font-size: 0.85rem;
  }
  .separator {
    margin: 1.25rem 0;
  }
}
