:root {
  --auth-bg: #edf3f3;
  --auth-surface: #ffffff;
  --auth-border: #d8e3e3;
  --auth-text: #172126;
  --auth-muted: #66767f;
  --auth-primary: #eb2525;
  --auth-primary-dark: #eb2525;
  --auth-accent: #14b8a6;
  --auth-sidebar: #7a0606;
}

html,
body {
  min-height: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.admin-auth {
  margin: 0;
  color: var(--auth-text);
  background: var(--auth-bg);
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
}

.auth-brand-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 150px;
  padding: 44px;
  color: #fff;
  background: var(--auth-sidebar);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.auth-logo {
  width: 44px;
  height: 44px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-brand-content {
  max-width: 480px;
}

.auth-brand-content h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
}

.auth-brand-content p {
  max-width: 420px;
  margin: 0;
  color: #b8ceca;
  font-size: 15px;
  line-height: 1.7;
}

.auth-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9db8b3;
  font-size: 12px;
  font-weight: 600;
}

.auth-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}

.auth-form-panel {
  min-height: 100vh;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
}

.auth-card {
  width: 100%;
  max-width: 430px;
  min-width: 0;
  padding: 34px;
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(16, 46, 45, 0.1);
}

.auth-card h2 {
  margin: 0;
  color: var(--auth-text);
  font-size: 24px;
  font-weight: 800;
}

.auth-card-intro {
  margin: 8px 0 27px;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  margin-bottom: 7px;
  color: #40515a;
  font-size: 12px;
  font-weight: 750;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap .fa {
  position: absolute;
  left: 13px;
  top: 50%;
  color: #819198;
  transform: translateY(-50%);
}

.auth-input-wrap .form-control {
  width: 100%;
  height: 44px;
  padding: 9px 12px 9px 38px;
  color: var(--auth-text);
  background: #fff;
  border: 1px solid #cbd7dc;
  border-radius: 6px;
  box-shadow: none;
}

.auth-input-wrap .form-control:focus {
  border-color: #7ba5f7;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-submit {
  width: 100%;
  min-height: 44px;
  margin-top: 5px;
  color: #fff;
  background: var(--auth-primary);
  border: 1px solid var(--auth-primary);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.auth-submit:hover,
.auth-submit:focus {
  color: #fff;
  background: var(--auth-primary-dark);
  border-color: var(--auth-primary-dark);
}

.auth-error {
  display: block;
  margin-top: 7px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 650;
}

.auth-card-footer {
  margin-top: 24px;
  padding-top: 18px;
  color: #87969d;
  border-top: 1px solid #e7edef;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    min-height: auto;
    padding: 22px;
  }

  .auth-brand-content,
  .auth-status {
    display: none;
  }

  .auth-form-panel {
    min-height: calc(100vh - 88px);
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 25px 20px;
  }
}
