.alert {
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  padding: 12px 16px;
}

.alert-danger {
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
  color: var(--danger);
}

.alert-success {
  background: var(--success-bg);
  border: 1px solid var(--success-line);
  color: var(--success);
}

.alert-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-line);
  color: var(--warning);
}

.alert-info {
  background: var(--info-bg);
  border: 1px solid var(--info-line);
  color: var(--info);
}

body {
  --danger-bg: #451b25;
  --danger-line: #842029;
  --danger: #ef233c;
  --success-bg: #0d3b35;
  --success-line: #146c43;
  --success: #009a72;
  --warning-bg: #442b16;
  --warning-line: #997404;
  --warning: #f59e0b;
  --info-bg: #123b44;
  --info-line: #1d6e82;
  --info: #4e9af1;
  background: #071b2d !important;
  font-family: inter, "Segoe UI", system-ui, sans-serif;
  margin: 0;
  min-height: 100vh;
}

.square {
  --radius-sm: 0;
  --radius: 0;
  --radius-lg: 0;
}

.auth-split {
  display: flex;
  min-height: 100vh;
}

.auth-brand {
  align-items: center;
  background: #071b2d url("/worklist/static/img/bg.jpg") center/cover no-repeat;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
}
.auth-brand .brand-logo {
  max-width: 360px;
  object-fit: contain;
  width: 100%;
}

.auth-panel {
  align-items: center;
  background: #0d1e30;
  border-left: 1px solid #1a3050;
  display: flex;
  flex: 0 0 460px;
  justify-content: center;
  padding: 48px 40px;
}

.auth-card {
  max-width: 360px;
  width: 100%;
}

.auth-header {
  margin-bottom: 28px;
  text-align: center;
}
.auth-header .auth-icon {
  align-items: center;
  background: rgba(240, 90, 40, 0.1);
  border: 1px solid rgba(240, 90, 40, 0.2);
  border-radius: 50%;
  color: #f05a28;
  display: inline-flex;
  font-size: 18px;
  height: 52px;
  justify-content: center;
  margin-bottom: 14px;
  width: 52px;
}
.auth-header h2 {
  color: #edf4fb;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
}
.auth-header p {
  color: rgba(237, 244, 251, 0.45);
  font-size: 12px;
  font-weight: 500;
  margin: 0;
}

.form-group {
  margin-bottom: 16px;
}
.form-group .form-label {
  color: rgba(237, 244, 251, 0.85);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-group .form-control {
  background: rgba(0, 0, 0, 0.28);
  border-color: #1a3050;
  border-radius: 4px;
  color: #edf4fb;
  font-size: 13px;
  height: 40px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group .form-control::placeholder {
  color: rgba(237, 244, 251, 0.45);
}
.form-group .form-control:focus {
  border-color: #f05a28;
  box-shadow: 0 0 0 2px rgba(240, 90, 40, 0.18);
}
.form-group .form-control:focus-visible {
  outline: none;
}

.form-check {
  align-items: center;
  display: flex;
  gap: 8px;
}
.form-check .form-check-input {
  border-color: #1a3050;
  height: 14px;
  width: 14px;
}
.form-check .form-check-input:checked {
  background-color: #f05a28;
  border-color: #f05a28;
}
.form-check .form-check-input:focus {
  box-shadow: 0 0 0 2px rgba(240, 90, 40, 0.12);
}
.form-check .form-check-label {
  color: rgba(237, 244, 251, 0.85);
  font-size: 12px;
  font-weight: 500;
  margin-top: 1px;
}

.auth-btn {
  background: #f05a28;
  border: 0;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  height: 42px;
  transition: background 0.15s;
}
.auth-btn:not(:disabled):hover, .auth-btn:not(:disabled):focus, .auth-btn:not(:disabled):active, .auth-btn:not(:disabled):focus-visible {
  background: #d44e22 !important;
  border-color: #d44e22 !important;
  color: #fff !important;
}
.auth-btn:not(:disabled):focus-visible {
  box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.35) !important;
  outline: none;
}
.auth-btn:disabled {
  background: rgba(240, 90, 40, 0.4) !important;
  border-color: transparent !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

.auth-back {
  color: rgba(237, 244, 251, 0.3);
  font-size: 12px;
  text-decoration: none;
}
.auth-back:hover {
  color: rgba(237, 244, 251, 0.6);
  text-decoration: none;
}

.alert-container {
  margin-top: 16px;
  min-height: 40px;
}
.alert-container .alert {
  text-align: center;
}

@media (width <= 768px) {
  .auth-split {
    flex-direction: column;
  }
  .auth-brand {
    border-bottom: 1px solid #1a3050;
    flex: 0 0 auto;
    padding: 28px 20px;
  }
  .auth-brand .brand-logo {
    max-width: 160px;
  }
  .auth-panel {
    border-left: 0;
    flex: 1;
    padding: 32px 20px;
  }
}
