﻿:root {
  --brand: var(--c-denim);
  --brand-dark: var(--color-blue-600);
  --brand-light: var(--color-blue-50);
  --dark: var(--text-primary);
  --mid: var(--text-secondary);
  --light: var(--surface-page);
  --white: var(--color-white);
  --shadow: var(--shadow-md);
  --background-color: #ECF2F6;
  --input-border-color: #2E77FF;
  --button-color: #212A4E;
  --circle-color-white: white;
  --circle-color-blue: #2E77FF;
  --circle-color-navy: #000E3C;
}

html, body {
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  font-family: var(--f-family);
  background: var(--light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #ECF2F6;
  background-color: var(--background-color);
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

#dvResetPassword.active + #azurePanel {
  margin-top: 20px;
}

#dvResetPassword {
  display: none;
}

#dvResetPassword.active {
  display: block;
}

#errorMessage,
#tdError {
  color: #dc2626;
  font-size: 0.9rem;
  margin-top: 10px;
  text-align: center;
}

#loginLogo.small {
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

#objAuthSend, #objAuthBox, #objAuthFail {
  display: none;
}
#objAuthSend h3, #objAuthBox h3, #objAuthFail h3 {
  margin-top: 30px;
}
#objAuthSend input[type=text], #objAuthBox input[type=text], #objAuthFail input[type=text] {
  font-size: 1.5em;
  letter-spacing: 1em;
  text-align: center;
}

#directPanel.hide {
  display: none !important;
}

/******************************
 Background decorative shapes 
******************************/
.bg-shape {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
}

.bg-shape-1 {
  width: 520px;
  height: 520px;
  border: 3px solid var(--brand);
  top: -160px;
  left: -160px;
  opacity: 0.18;
}

.bg-shape-2 {
  width: 380px;
  height: 380px;
  background: var(--brand);
  bottom: -140px;
  right: -100px;
  opacity: 0.07;
}

.bg-shape-3 {
  width: 220px;
  height: 220px;
  border: 2px solid var(--brand);
  top: 60px;
  right: 80px;
  opacity: 0.12;
}

.bg-shape-4 {
  width: 160px;
  height: 160px;
  background: var(--brand);
  bottom: 80px;
  left: 60px;
  opacity: 0.06;
}

.login-card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 48px 44px 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 10;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

.hide {
  display: none;
}

.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 36px;
}

.logo-svg-wrap {
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
}
.logo-svg-wrap svg path {
  fill: var(--c-denim, #237abf);
}

.logo-wordmark {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.logo-tagline {
  font-size: 0.8rem;
  color: var(--mid);
  margin-top: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-toggle {
  display: flex;
  background: var(--light);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}

.auth-btn {
  flex: 1;
  padding: 8px 0;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--f-family);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--mid);
  height: auto;
}

.auth-btn.active {
  background: var(--white);
  color: var(--brand);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

Form .form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

input[type=text],
input[type=email],
input[type=password] {
  width: 100%;
  height: auto;
  padding: 11px 14px;
  border: 1.5px solid #d1d9e0;
  border-radius: var(--radius);
  font-size: 0.93rem;
  color: var(--dark);
  background: var(--white);
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
}

input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(35, 122, 191, 0.12);
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 0.78rem;
  color: var(--brand);
  text-decoration: none;
  margin-top: 6px;
  font-weight: 500;
  cursor: pointer;
}

.forgot-link:hover {
  text-decoration: underline;
}

.btn-primary {
  width: 100%;
  height: auto;
  padding: 13px;
  background: var(--brand);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-family: var(--f-family);
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-primary:active {
  transform: scale(0.99);
}

.sso-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 16px;
  color: #b0b8c1;
  font-size: 0.78rem;
}
.sso-divider:hover {
  border: none !important;
  background-color: var(--circle-color-blue) !important;
}
.sso-divider:focus {
  background-color: var(--button-color) !important;
  outline: 2px solid var(--circle-color-blue) !important;
}

.sso-divider::before, .sso-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e9ee;
}

.btn-sso, .btn-sso-swap {
  width: 100%;
  height: auto;
  padding: 11px;
  background: var(--white);
  color: var(--dark);
  border: 1.5px solid #d1d9e0;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--f-family);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-sso:hover, .btn-sso-swap:hover {
  border-color: var(--brand);
  background: var(--brand-light);
}

.btn-sso-swap {
  margin-top: 5px;
}

.ms-text-desc {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 18px;
}

.ms-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.back-to-login {
  display: block;
  text-align: end;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  margin-bottom: 16px;
  cursor: pointer;
}
.back-to-login:hover {
  text-decoration: underline;
}
.back-to-login:focus {
  outline: none;
}

.auth-btn:not(.active) {
  color: var(--mid);
  background: transparent;
}

.card-footer {
  text-align: center;
  padding-top: 24px;
}
.card-footer .social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.card-footer .social-links a {
  opacity: 0.7;
  transition: opacity 0.2s;
}
.card-footer .social-links a:hover {
  opacity: 1;
}
.card-footer .social-links a:focus {
  outline: none;
}
.card-footer .social-links .socialButtons {
  width: 28px;
  height: 28px;
  display: block;
}

.page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--white);
  border-top: 1px solid #e8ecf0;
  z-index: 10;
}

.page-footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eleco-label {
  font-size: 0.7rem;
  color: #b0b8c1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

.eleco-logo {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e2a3a;
  letter-spacing: 0.06em;
}

.eleco-logo sup {
  font-size: 0.45rem;
  vertical-align: super;
  font-weight: 600;
}

.eleco-divider {
  width: 1px;
  height: 16px;
  background: #d1d9e0;
}

.page-footer-right {
  font-size: 0.72rem;
  color: #b0b8c1;
}

.page-footer-right a {
  color: var(--brand);
  text-decoration: none;
}

.page-footer-right a:hover {
  text-decoration: underline;
}

/*Azure panel (hidden by default)*/
.azure-panel {
  display: none;
}

.azure-panel.visible {
  display: block;
}

.direct-panel {
  display: block;
}

.direct-panel.hidden {
  display: none;
}

#dvlogoBestoutcome {
  max-width: 200px;
}
#dvlogoBestoutcome img {
  max-width: 200px;
}
