/* auth.css - Authentication page styles */

/* Full-screen video background */
#bgVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.login-page {
  position: relative;
  background: none !important;
  background-image: none !important;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 540px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(25px);
  border-radius: 12px;
  padding: 25px 50px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  text-align: center;
  position: relative;
  z-index: 1;
}

.back-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  color: #5f6368;
  /* z-index: 10; */
}

.back-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.back-btn svg {
  stroke: currentColor;
}

.auth-view {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-logo {
  width: 120px;
  height: auto;
  margin: 0 auto 25px auto;
  display: block;
}

/* Welcome screen */
.welcome-title {
  font-size: 32px;
  font-weight: 400;
  color: #202124;
  margin: 0 0 32px 0;
  text-align: center;
}

.signup-title {
  font-size: 32px;
  font-weight: 400;
  color: #202124;
  margin: 0 0 12px 0;
  text-align: center;
}

.signup-subtitle {
  font-size: 14px;
  color: #5f6368;
  margin: 0 0 24px 0;
  text-align: center;
  line-height: 1.5;
}

/* Primary buttons */
.primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 55px;
  padding: 0 24px;
  margin-bottom: 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.primary-btn:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.microsoft-login-btn {
  background: #0067b8;
  color: white;
}

.microsoft-login-btn:hover {
  background: #005a9e;
}

.microsoft-login-btn img {
  margin-right: 12px;
  height: 20px;
  width: 20px;
}

.signup-btn {
  background: #0067b8;
  color: white;
}

.signup-btn:hover {
  background: #005a9e;
}

.submit-btn {
  background: #0067b8;
  color: white;
  transition: all 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
  background: #005a9e;
}

.submit-btn:disabled {
  background: #ccc;
  color: #202124;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.login-submit-btn {
  background: #202124;
  color: white;
}

.login-submit-btn:hover {
  background: #303134;
}

/* Basic signup form submit button */
#basicSignupForm .submit-btn {
  background: #202124;
  color: white;
}

#basicSignupForm .submit-btn:hover:not(:disabled) {
  background: #303134;
}

/* Signup tabs */
.signup-options {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.option-tab {
  flex: 1;
  padding: 12px 16px;
  background: #f1f3f4;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-tab:hover {
  background: #e8eaed;
}

.option-tab.active {
  background: #0067b8;
  color: white;
}

.signup-form-container {
  animation: fadeIn 0.3s ease;
}

/* Divider */
.divider {
  text-align: center;
  position: relative;
  color: #5f6368;
  font-size: 14px;
  font-weight: 400;
  margin: 25px 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #dadce0;
  z-index: 1;
}

.divider span {
  background: rgba(255, 255, 255, 0.8);
  padding: 0 16px;
  position: relative;
  z-index: 2;
}

/* Info box */
.info-box {
  background: #e8f0fe;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 24px;
  text-align: left;
}

.info-box p {
  margin: 0;
  font-size: 14px;
  color: #202124;
  line-height: 1.6;
}

.info-link {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
}

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

/* Form elements */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s;
  color: #202124;
  background-color: rgb(232, 240, 254);
}

.form-input:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
  background-color: rgb(232, 240, 254);
}

.form-input::placeholder {
  color: #5f6368;
}

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s;
  color: #202124;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  resize: vertical;
  min-height: 80px;
}

.form-textarea:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.form-textarea::placeholder {
  color: #5f6368;
}

/* Checkbox group */
.checkbox-group {
  margin-bottom: 24px;
  text-align: left;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.checkbox-label {
  display: inline;
  font-size: 14px;
  color: #202124;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label a {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 400;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* Messages */
.error {
  background: #fce8e6;
  color: #d93025;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  text-align: left;
}

.success {
  background: #e6f4ea;
  color: #137333;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  text-align: left;
}

.field-errors {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  color: #d93025;
  font-size: 13px;
}

.field-errors li {
  margin: 0;
  padding: 0;
}

.field-errors[hidden] {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .login-container {
    padding: 32px 24px;
  }
  
  .welcome-title,
  .signup-title {
    font-size: 28px;
  }
}