/* NetcloudBrasil NSWEB theme for Apache Guacamole login */
:root {
  --nsweb-accent-a: #0a94d1;
  --nsweb-accent-b: #0fb4ae;
  --nsweb-field: #eef5ff;
  --nsweb-field-band: #e7f0fb;
  --nsweb-text: #eef7ff;
  --nsweb-login-scale: .9;
}

html,
body {
  min-height: 100%;
}

body {
  background: #f5f7fb !important;
  color: #1f2937;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

#content,
.login-ui {
  position: relative;
  z-index: 1;
}

#content .placeholder,
#content p.placeholder {
  color: #5f6f84 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.login-ui {
  min-height: 100vh;
  height: 100vh;
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 4.25rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 10, 22, .34), rgba(4, 10, 22, .1) 42%, rgba(4, 10, 22, .64)),
    radial-gradient(circle at 50% 48%, rgba(10, 35, 70, .08), rgba(2, 8, 20, .22) 58%, rgba(2, 8, 20, .62) 100%),
    url("datacenter-login-wide.jpg") center / 100% 100% no-repeat fixed !important;
}

.login-ui::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(2, 8, 18, .36), transparent 38%, transparent 62%, rgba(2, 8, 18, .42));
  pointer-events: none;
}

.login-ui::after {
  content: "NSWEB - N Server Web  -  Copyright 2026 NetcloudBrasil Datacenter";
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1.05rem;
  z-index: 1;
  color: rgba(255, 255, 255, .92);
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .58);
}

.login-ui .login-dialog,
.login-ui .login-dialog-middle,
.login-ui .login-dialog-body,
.login-ui .notification {
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.login-ui .login-dialog-middle {
  width: min(430px, calc(100vw - 2rem));
  position: relative;
  z-index: 1;
  transform: scale(var(--nsweb-login-scale));
  transform-origin: center center;
}

.login-ui .login-dialog {
  width: 100% !important;
  max-width: 100%;
  color: #fff;
  text-align: center;
}

.login-ui .login-form {
  display: block;
  width: 100%;
  margin: 0;
}

.login-ui .login-dialog::before {
  content: "";
  display: block;
  width: 128px;
  height: 82px;
  margin: 0 auto 1.35rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  background:
    rgba(255, 255, 255, .08)
    url("logo-clean.png") center / contain no-repeat;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .55));
}

.login-ui .logo {
  display: none !important;
}

.login-ui .version {
  margin: 0 0 1.85rem;
  color: #fff !important;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .62);
}

.login-ui .version::before {
  content: "NETCLOUDBRASIL DATACENTER";
  display: block;
  margin: 0 0 .7rem;
  color: rgba(255, 255, 255, .96);
  font-size: .94rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1.2;
}

.login-ui .version::after {
  content: "NSWEB - N Server Web";
  display: block;
  margin-top: .72rem;
  color: rgba(255, 255, 255, .98);
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
}

.login-ui .version .app-name,
.login-ui .version .version-number {
  display: block !important;
  margin: 0;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1.2;
}

.login-ui .version .app-name::before {
  content: "Bem vindo";
  display: block;
  color: #fff;
  font-size: 2.16rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
  text-transform: none;
}

.login-ui .version .version-number {
  display: none !important;
}

.login-ui .login-fields {
  width: min(385px, calc(100vw - 3rem));
  margin: 0 auto;
}

.login-ui .login-fields .labeled-field {
  display: grid !important;
  gap: .42rem;
  position: relative !important;
  z-index: 1;
  margin: 0 0 .95rem;
}

.login-ui .login-fields .labeled-field .field-header,
.login-ui .login-fields .labeled-field.empty .field-header,
.login-ui .login-fields .labeled-field:not(.empty) .field-header {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: block !important;
  margin: 0 !important;
  opacity: 1 !important;
  overflow: visible !important;
  color: rgba(255, 255, 255, .92) !important;
  text-align: left;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
  pointer-events: none;
}

.login-ui .login-fields .field-header label {
  color: inherit !important;
  text-transform: uppercase;
}

.login-ui .username-field,
.login-ui .password-field {
  position: relative;
}

.login-ui .username-field::before,
.login-ui .password-field::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 50px;
  height: 100%;
  border-radius: 6px 0 0 6px;
  background-color: var(--nsweb-field-band);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px 22px;
  pointer-events: none;
}

.login-ui .username-field::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%230a94d1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.login-ui .password-field::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%230a94d1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3Ccircle cx='12' cy='16' r='1'/%3E%3C/svg%3E");
}

.login-ui input[type="text"],
.login-ui input[type="password"],
.login-ui input[type="email"] {
  width: 100% !important;
  min-height: 54px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .55) !important;
  border-radius: 6px !important;
  background: var(--nsweb-field) !important;
  color: #132033 !important;
  padding: 0 1rem 0 60px !important;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.login-ui .login-fields .labeled-field.empty input {
  background: var(--nsweb-field) !important;
}

.login-ui input::placeholder {
  color: #526071 !important;
  opacity: 1 !important;
}

.login-ui input:focus {
  outline: 0 !important;
  border-color: #1b9bb5 !important;
  box-shadow: 0 0 0 3px rgba(27, 155, 181, .18), 0 14px 34px rgba(0, 0, 0, .18) !important;
}

.login-ui .login-fields .labeled-field.empty input:focus {
  background: var(--nsweb-field) !important;
}

.login-ui .login-fields .labeled-field.empty .field-header {
  justify-content: flex-start;
}

.login-ui .login-fields .labeled-field.empty .field-header label {
  color: inherit !important;
}

.login-ui .login-fields .labeled-field.empty input + .field-header {
  display: block;
}

.login-ui .buttons {
  width: min(385px, calc(100vw - 3rem));
  margin: 1.18rem auto 0;
}

.login-ui input[type="submit"],
.login-ui button[type="submit"],
.login-ui .login-submit {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, .85) !important;
  border-radius: 999px !important;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") calc(50% - 38px) center / 18px 18px no-repeat,
    linear-gradient(135deg, var(--nsweb-accent-a), var(--nsweb-accent-b)) !important;
  color: #fff !important;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  box-shadow: 0 14px 34px rgba(4, 71, 122, .38);
  cursor: pointer;
}

.login-ui input[type="submit"]:hover,
.login-ui button[type="submit"]:hover {
  filter: brightness(1.04);
}

.login-ui .continue-login {
  display: none !important;
}

.login-ui .error,
.login-ui .login-error,
.login-ui .notification {
  border-radius: 8px !important;
}

.login-ui p.login-error {
  color: #964040;
  text-shadow: none;
}

@media (max-width: 860px) {
  .login-ui {
    background-size: cover !important;
  }

  .login-ui {
    height: auto;
    min-height: 100vh;
    padding: 1.5rem 1rem 4.25rem;
  }

  .login-ui .login-dialog-middle {
    width: min(370px, calc(100vw - 1.25rem));
  }

  .login-ui .version .app-name::before {
    font-size: 1.92rem;
  }

  .login-ui .version::after {
    font-size: 1.05rem;
  }
}
