:root {
  --brand-color: #225491;
  --brand-dark: #163862;
  --text-color: #334155;
  --border-color: #e2e8f0;
  --bg-light: #f8fafc;
  --error-color: #ef4444;
  --success-color: #10b981;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  background-color: #fff;
  color: var(--text-color);
  line-height: 1.5;
}

.auth-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* Left Side: Branding */
.auth-branding {
  flex: 1;
  background: linear-gradient(
    135deg,
    var(--brand-color) 0%,
    var(--brand-dark) 100%
  );
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.auth-branding::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  animation: rotate 60s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.auth-branding-content {
  position: relative;
  z-index: 2;
  max-width: 400px;
}

.auth-branding-logo {
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
}

.auth-branding h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.auth-branding p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.btn-outline {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
  background: white;
  color: var(--brand-color);
  border-color: white;
  transform: translateY(-2px);
}

/* Right Side: Form */
.auth-form-wrapper {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background-color: white;
  overflow-y: auto;
}

.auth-form-content {
  width: 100%;
  max-width: 450px;
}

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

.auth-header h2 {
  font-size: 2rem;
  color: var(--brand-color);
  font-weight: 700;
  margin-bottom: 10px;
}

.auth-header p {
  color: #64748b;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  height: 50px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: var(--bg-light);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-color);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(21, 52, 90, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  accent-color: var(--brand-color);
}

.btn-primary {
  width: 100%;
  height: 50px;
  padding: 0 20px;
  background: linear-gradient(
    135deg,
    var(--brand-color) 0%,
    var(--brand-dark) 100%
  );
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(21, 52, 90, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(21, 52, 90, 0.3);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-message {
  margin-top: 20px;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.auth-message.error {
  display: block;
  background-color: #fef2f2;
  color: var(--error-color);
  border: 1px solid #fecaca;
}

.auth-message.success {
  display: block;
  background-color: #ecfdf5;
  color: var(--success-color);
  border: 1px solid #a7f3d0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .auth-container {
    flex-direction: column;
  }

  .auth-branding {
    flex: none;
    padding: 40px 20px;
    min-height: 300px;
  }

  .auth-branding h1 {
    font-size: 2rem;
  }

  .auth-form-wrapper {
    flex: none;
    padding: 40px 20px;
  }
}
