:root {
  --primary: #3498db;
  --primary-hover: #2980b9;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --card-bg: rgba(255, 255, 255, 0.95);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --error: #ef4444;
  --success: #10b981;
  --info: #3b82f6;
  --radius: 12px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

body.login-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--bg-gradient);
  margin: 0;
  padding: 24px;
  font-family: Arial, sans-serif;
  color: var(--text-main);
}

.login-container {
  width: 100%;
  max-width: 440px;
}

.login-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  overflow: hidden;
}

.card-body {
  padding: 48px;
}

.login-header {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-main);
  margin: 0;
  text-align: center;
}

.login-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.login-header-container form {
  margin: 0;
}

select[name="lang"] {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

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

.form-group.mb-3 {
  margin-bottom: 1rem;
}

.form-group.mb-4 {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-main);
  font-size: 16px;
}

.form-control {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background: white;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

input[type="file"].form-control {
  padding: 8px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background: white;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #27ae60;
  color: white;
  border: 2px solid #219653;
}

.btn-primary:hover {
  background: #219653;
}

.btn-lg {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

.d-grid {
  display: block;
}

.gap-2 {
  margin-top: 10px;
}

.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
  padding: 12px;
  border-radius: 4px;
}

.link-primary {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
}

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

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mt-1 { 
  margin-top: 1rem; 
}

.hidden { 
  display: none; 
}

/* Setup new account button styling */
.alert.alert-info .link-primary {
  display: block;
  text-align: center;
}