/* Auth Pages Styles */
/* Based on admin.css design system */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #f5f8ff 0%, #e6eaff 100%);
  color: #333;
}

.auth-container {
  width: 100%;
  max-width: 450px;
  padding: 20px;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 32px #4a6cff22;
  padding: 40px;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h1 {
  margin: 0 0 10px 0;
  font-size: 28px;
  color: #304ffe;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.auth-header p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: #444;
}

.form-group input,
.form-group select {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #304ffe;
  box-shadow: 0 0 0 3px rgba(48, 79, 254, 0.1);
}

.form-group input::placeholder {
  color: #999;
}

.extensions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f9f9f9;
}

.extension-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: white;
  border-radius: 4px;
}

.extension-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.extension-item label {
  cursor: pointer;
  font-size: 14px;
  color: #333;
  flex: 1;
}

.btn-primary {
  padding: 14px 20px;
  background: linear-gradient(90deg, #304ffe 60%, #7c4dff 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(48, 79, 254, 0.125);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(90deg, #7c4dff 0%, #304ffe 100%);
  box-shadow: 0 4px 12px rgba(48, 79, 254, 0.175);
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(48, 79, 254, 0.25), 0 2px 8px rgba(48, 79, 254, 0.125);
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-google {
  width: 100%;
  padding: 14px 20px;
  background: white;
  color: #444;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-google:hover:not(:disabled) {
  background: #f8f8f8;
  border-color: #bfcfff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-google:focus {
  outline: none;
  border-color: #304ffe;
  box-shadow: 0 0 0 3px rgba(48, 79, 254, 0.1);
}

.btn-google:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 10px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.divider span {
  padding: 0 15px;
  color: #999;
  font-size: 13px;
}

.auth-links {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #666;
}

.auth-links a {
  color: #304ffe;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.auth-links a:hover {
  color: #7c4dff;
  text-decoration: underline;
}

.message {
  position: fixed;
  top: 28px;
  right: 36px;
  min-width: 260px;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(48, 79, 254, 0.18);
  background: #fff;
  color: #304ffe;
  border: none;
  display: none;
  z-index: 2000;
}

.message-error {
  background: #fff0f0;
  color: #d32f2f;
  box-shadow: 0 4px 18px rgba(211, 47, 47, 0.2);
}

.message-success {
  background: #e8ffef;
  color: #00c853;
  box-shadow: 0 4px 18px rgba(0, 200, 83, 0.16);
}

.message-info {
  background: #e6edff;
  color: #304ffe;
  box-shadow: 0 4px 18px rgba(48, 79, 254, 0.14);
}

.code-input {
  text-align: center;
  font-size: 24px;
  letter-spacing: 8px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.resend-link {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

.resend-link button {
  background: none;
  border: none;
  color: #304ffe;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.resend-link button:hover {
  color: #7c4dff;
}

.resend-link button:focus {
  outline: none;
  color: #7c4dff;
}

/* Responsive */
@media (max-width: 500px) {
  .auth-card {
    padding: 30px 20px;
  }
  
  .auth-header h1 {
    font-size: 24px;
  }
}
