/* Extol Medical Solutions - Custom Login Page Styling */

:root {
  --extol-primary: #2aa8a1;
  --extol-secondary: #1f8f6b;
  --extol-bg-dark: #0d1618;
  --extol-bg-card: rgba(20, 35, 38, 0.95);
  --extol-text-light: #e8f0ed;
  --extol-text-muted: rgba(232, 240, 237, 0.7);
  --extol-border: rgba(42, 168, 161, 0.15);
}

/* Login Page Background */
body.task-login {
  background: linear-gradient(135deg, #0d1618 0%, #1a2e2c 50%, #0f1c1f 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center the login form */
body.task-login #layout {
  width: 100%;
  max-width: none;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Login Card Container */
body.task-login #login-form,
body.task-login #layout-content {
  background: var(--extol-bg-card);
  border: 1px solid var(--extol-border);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* Logo Styling - Fixed Position */
body.task-login #logo {
  display: block;
  max-width: 180px;
  height: auto;
  margin: -40px auto 120px auto;
  padding: 0;
  position: relative;
  z-index: 10;
}

/* Hide the distorted background logo if any */
body.task-login #logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Login Title and Subtitle from Template */
body.task-login .extol-login-title {
  color: var(--extol-text-light);
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px 0;
  position: relative;
  z-index: 10;
}

body.task-login .extol-login-subtitle {
  color: var(--extol-text-muted);
  text-align: center;
  margin: 0 0 32px 0;
  font-size: 14px;
  position: relative;
  z-index: 10;
}

/* Page Title */
body.task-login h1,
body.task-login .voice {
  display: none !important; /* Hide default title, using custom divs instead */
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  opacity: 0 !important;
}

/* Subtitle */
body.task-login #content > p,
body.task-login .subtitle {
  color: var(--extol-text-muted);
  text-align: center;
  margin: 0 0 32px 0;
  font-size: 14px;
}

/* Form Table Layout */
body.task-login #login-form table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
}

body.task-login #login-form tbody td {
  padding: 8px 0;
}

body.task-login #login-form td.title {
  display: none; /* Hide labels, use placeholders instead */
}

/* Input Fields */
body.task-login .form-control,
body.task-login input[type="text"],
body.task-login input[type="password"] {
  width: 100% !important;
  background: rgba(15, 30, 33, 0.7);
  border: 1px solid rgba(42, 168, 161, 0.3);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--extol-text-light);
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

body.task-login .form-control:focus,
body.task-login input[type="text"]:focus,
body.task-login input[type="password"]:focus {
  border-color: var(--extol-primary);
  box-shadow: 0 0 0 3px rgba(42, 168, 161, 0.15);
  outline: none;
  background: rgba(15, 30, 33, 0.9);
}

body.task-login .form-control::placeholder {
  color: var(--extol-text-muted);
}

/* Login Button */
body.task-login .button.mainaction,
body.task-login button[type="submit"],
body.task-login input[type="submit"] {
  width: 100%;
  background: linear-gradient(135deg, var(--extol-primary) 0%, var(--extol-secondary) 100%);
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

body.task-login .button.mainaction:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(42, 168, 161, 0.3);
  filter: brightness(1.1);
}

body.task-login .button.mainaction:active {
  transform: translateY(0);
}

/* Form Buttons Container */
body.task-login .formbuttons {
  margin-top: 16px;
  text-align: center;
}

/* Secondary Links */
body.task-login #login-footer,
body.task-login .formlinks {
  margin-top: 24px;
  text-align: center;
  color: var(--extol-text-muted);
  font-size: 13px;
}

body.task-login #login-footer a,
body.task-login .formlinks a {
  color: var(--extol-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

body.task-login #login-footer a:hover,
body.task-login .formlinks a:hover {
  color: var(--extol-secondary);
  text-decoration: underline;
}

/* Error/Info Messages */
body.task-login .boxerror,
body.task-login .boxinformation,
body.task-login .boxwarning {
  margin: 0 0 20px 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

body.task-login .boxerror {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #ff6b7a;
}

body.task-login .boxinformation {
  background: rgba(13, 202, 240, 0.15);
  border: 1px solid rgba(13, 202, 240, 0.3);
  color: #5dd4f4;
}

/* Responsive Design */
@media (max-width: 480px) {
  body.task-login #layout-content {
    padding: 32px 24px;
    border-radius: 12px;
  }
  
  body.task-login #logo {
    max-width: 150px;
    margin-bottom: 20px;
  }
  
  body.task-login h1 {
    font-size: 20px;
  }
}

/* Remove any overlapping elements */
body.task-login #layout-content::before,
body.task-login #layout-content::after,
body.task-login::before,
body.task-login::after,
body.task-login #layout::before,
body.task-login #layout::after {
  display: none !important;
  content: none !important;
}

/* Remove any unwanted borders or outlines */
body.task-login #layout > * {
  border: none !important;
  outline: none !important;
}

body.task-login #layout > *:not(#layout-content) {
  display: none !important;
}

/* Fix any absolute positioned elements */
body.task-login * {
  position: relative;
}

body.task-login #layout,
body.task-login #layout-content,
body.task-login #login-form {
  position: static;
}
