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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 32px 0 28px;
  text-decoration: none;
}

.auth-icon-logo {
  width: 160px;
  height: auto;
  max-width: none;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 12px 26px rgba(0, 180, 216, 0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.auth-brand:hover .auth-icon-logo {
  transform: scale(1.05);
  filter: drop-shadow(0 16px 32px rgba(0, 180, 216, 0.5));
}

.auth-brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-brand-text .brand-name {
  color: #60a5fa;
}

.auth-brand-text .brand-tld {
  color: #14b8a6;
}

.auth-brand:hover .auth-brand-text {
  opacity: 0.9;
}

@media (max-width: 480px) {
  .auth-icon-logo {
    width: 120px;
  }
  
  .auth-brand-text {
    font-size: 1.25rem;
  }
}

.auth-card {
  background: linear-gradient(145deg, #1e293b, #273549);
  border-radius: 16px;
  border: 1px solid #334155;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.auth-header {
  text-align: center;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid #334155;
}

.auth-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: #94a3b8;
  font-size: 0.9rem;
}

.auth-form {
  padding: 1.5rem 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

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

.form-group input.has-error {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.inline-hint {
  font-size: 0.8rem;
  color: #fbbf24;
  margin-top: 0.5rem;
}

.inline-hint.show {
  display: block;
}

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  color: #fca5a5;
  font-size: 0.875rem;
}

.auth-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid #22c55e;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  color: #86efac;
  font-size: 0.875rem;
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 0.5rem;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

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

.input-with-icon {
  position: relative;
}

.input-with-icon input {
  width: 100%;
  padding-right: 3rem;
}

.toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: #94a3b8;
}

.toggle-password:focus {
  outline: none;
  color: #4f46e5;
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: #64748b;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: #60a5fa;
  text-decoration: underline;
}

.coming-soon-icon {
  margin: 1rem 0;
}

.auth-footer {
  text-align: center;
  padding: 1.25rem 2rem;
  border-top: 1px solid #334155;
  background: rgba(15, 23, 42, 0.3);
}

.auth-footer p {
  font-size: 0.875rem;
  color: #94a3b8;
}

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

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

@media (max-width: 480px) {
  .auth-form {
    padding: 1.25rem 1.5rem;
  }
  
  .auth-header {
    padding: 1.5rem 1.5rem 1.25rem;
  }
}
