﻿.auth-body {
  min-height: 100vh;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #ebf9ff;
  background:
    radial-gradient(920px 560px at 8% -12%, rgba(61, 228, 255, 0.26), transparent 45%),
    radial-gradient(880px 520px at 92% -18%, rgba(74, 141, 255, 0.32), transparent 48%),
    radial-gradient(760px 480px at 50% 115%, rgba(0, 218, 153, 0.14), transparent 50%),
    linear-gradient(155deg, #040b17, #071125 56%, #0d1e3a);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  border-radius: 24px;
  border: 1px solid rgba(165, 214, 245, 0.34);
  background:
    radial-gradient(circle at 15% 0%, rgba(61, 228, 255, 0.16), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(74, 141, 255, 0.22), transparent 40%),
    linear-gradient(180deg, rgba(10, 23, 45, 0.95), rgba(8, 16, 32, 0.96));
  padding: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 34px 84px rgba(2, 9, 22, 0.66),
    0 0 28px rgba(67, 189, 255, 0.24);
}

.auth-title {
  margin: 0;
  font-size: clamp(30px, 3vw, 36px);
  color: #f5fcff;
  text-shadow: 0 0 24px rgba(95, 209, 255, 0.44);
}

.auth-subtitle {
  margin-top: 10px;
  color: #b8d4eb;
  line-height: 1.58;
}

.auth-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form label {
  color: #e8f6ff;
  font-size: 13px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 13px;
  border: 1px solid rgba(160, 206, 235, 0.34);
  background:
    linear-gradient(145deg, rgba(61, 228, 255, 0.08), rgba(74, 141, 255, 0.1)),
    rgba(8, 17, 34, 0.88);
  color: #f1f9ff;
  min-height: 36px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.auth-form input:focus {
  border-color: rgba(136, 224, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 3px rgba(73, 188, 255, 0.2);
  outline: none;
}

.auth-button {
  margin-top: 2px;
  border: 1px solid rgba(166, 214, 245, 0.42);
  border-radius: 999px;
  color: #f4fcff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-height: 42px;
  cursor: pointer;
  background:
    linear-gradient(130deg, rgba(61, 228, 255, 0.4), rgba(74, 141, 255, 0.42)),
    linear-gradient(130deg, rgba(20, 74, 155, 0.93), rgba(18, 56, 122, 0.93));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 16px 30px rgba(20, 73, 154, 0.48),
    0 0 24px rgba(78, 197, 255, 0.3);
  text-shadow: 0 0 14px rgba(112, 220, 255, 0.52);
}

.auth-button:hover {
  transform: translateY(-2px);
  border-color: rgba(199, 232, 250, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 20px 36px rgba(22, 78, 164, 0.58),
    0 0 28px rgba(86, 208, 255, 0.44);
}

.auth-button:disabled,
.auth-sso-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.auth-links {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.auth-links a {
  color: #c4edff;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.auth-links a:hover {
  color: #f1fbff;
  border-bottom-color: rgba(194, 238, 255, 0.84);
}

.auth-sso-shell {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.auth-sso-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9cc1dc;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-sso-divider::before,
.auth-sso-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(149, 203, 236, 0.05), rgba(149, 203, 236, 0.44), rgba(149, 203, 236, 0.05));
}

.auth-sso-grid {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-sso-button {
  border: 1px solid rgba(160, 206, 235, 0.28);
  border-radius: 18px;
  min-height: 56px;
  min-width: 154px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #eef9ff;
  background:
    linear-gradient(145deg, rgba(61, 228, 255, 0.09), rgba(74, 141, 255, 0.11)),
    rgba(8, 17, 34, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 28px rgba(6, 17, 35, 0.34);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.auth-sso-button:hover:not(:disabled),
.auth-sso-button.is-pending {
  transform: translateY(-1px);
  border-color: rgba(194, 232, 250, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 34px rgba(7, 21, 43, 0.46),
    0 0 20px rgba(84, 202, 255, 0.18);
}

.auth-sso-button-badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid rgba(194, 232, 250, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.auth-sso-button-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.auth-sso-button-copy {
  line-height: 1.3;
  text-align: left;
}

.auth-sso-button-provider-google .auth-sso-button-badge {
  background: rgba(255, 255, 255, 0.9);
}

.auth-sso-button-provider-microsoft .auth-sso-button-badge {
  background: rgba(255, 255, 255, 0.1);
}

.auth-sso-status {
  width: 100%;
  min-height: 0;
  margin: 0;
  color: #a8cbe4;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.auth-sso-status.is-error {
  color: #ff8e9e;
}

.auth-sso-status.is-success {
  color: #77f5ba;
}

.auth-sso-status.is-info {
  color: #9edcff;
}

.text-profit {
  color: #35f3a8;
  text-shadow: 0 0 14px rgba(53, 243, 168, 0.46);
}

.text-loss {
  color: #ff6d82;
  text-shadow: 0 0 14px rgba(255, 109, 130, 0.46);
}

@media (max-width: 640px) {
  .auth-card {
    padding: 22px;
  }

  .auth-sso-grid {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .auth-sso-button {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}
