/* Semozhix Admin Panel - Login Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-login: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #f5f3ff 100%);
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --border-focus: #a78bfa;
  --shadow-lg: 0 20px 60px rgba(139, 92, 246, 0.12), 0 10px 20px rgba(139, 92, 246, 0.04);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-login);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  -webkit-font-smoothing: antialiased;
}

.login-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(139, 92, 246, 0.1);
  transition: transform 0.3s ease;
}

.login-card:hover {
  transform: translateY(-2px);
}

.login-logo {
  text-align: center;
  margin-bottom: 36px;
}

.login-logo h1 {
  font-size: 32px;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.login-logo h1 span {
  color: var(--accent);
}

.login-logo p {
  color: var(--text-secondary);
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-icon-wrapper {
  position: relative;
  width: 100%;
}

.input-icon-wrapper .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-icon-wrapper:focus-within .input-icon {
  color: var(--accent);
}

.form-group input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.2s ease;
  background-color: #f8fafc;
}

.form-group input:focus {
  outline: none;
  border-color: var(--border-focus);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
  transition: all 0.25s ease;
  margin-top: 8px;
}

.btn-login:hover {
  opacity: 0.95;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
  transform: translateY(-1px);
}

.btn-login:active {
  transform: translateY(0);
}

.error-msg {
  background: #fef2f2;
  color: #dc2626;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 24px;
  border: 1px solid #fecaca;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-msg::before {
  content: "⚠️";
}
