
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --ecate-purple: #492e4b;
  --ecate-purple-2: #3b253d;
  --ecate-accent: #d784e3;
  --ecate-accent-hover: #cc6bd9;
  --ecate-surface: #ffffff;
  --ecate-page: #f7f7f7;
  --ecate-text: #353535;
  --ecate-muted: #666666;
  --ecate-border: #e3dde5;
  --ecate-header-height: 76px;
  --ecate-footer-brand-height: 64px;
}

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

body.ecate-hub-page {
  background: var(--ecate-page);
  color: var(--ecate-text);
  display: flex;
  flex-direction: column;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  margin: 0;
  min-height: 100vh;
}

.dpaas-header {
  align-items: center;
  background: var(--ecate-purple);
  box-shadow: 0 10px 24px rgba(37, 23, 39, 0.18);
  color: #ffffff;
  display: flex;
  min-height: var(--ecate-header-height);
  padding: 0 clamp(24px, 6vw, 72px);
  position: relative;
  z-index: 10;
}

.dpaas-header-left {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 18px;
  padding: 16px 0;
  text-decoration: none;
}

.dpaas-header-left:hover {
  color: #ffffff;
  text-decoration: none;
}

.dpaas-logo {
  display: block;
  height: 34px;
  width: auto;
}

.header-text,
.piattaforma-data-product {
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.14;
}

.ecate-navbar {
  background: var(--ecate-surface);
  border-bottom: 1px solid var(--ecate-border);
  margin-bottom: 0;
  min-height: 60px;
  padding: 10px clamp(16px, 4vw, 48px);
}

.ecate-navbar .navbar-brand {
  align-items: center;
  display: inline-flex;
  margin-right: 28px;
}

.ecate-navbar .jpy-logo {
  height: 28px;
  width: auto;
}

.ecate-navbar .nav-link,
.ecate-navbar #login_widget {
  color: var(--ecate-text);
  font-size: 15px;
  font-weight: 600;
}

.ecate-navbar .nav-link:hover,
.ecate-navbar .nav-link:focus {
  color: var(--ecate-purple);
}

.btn-jupyter,
.btn-primary,
.new-server-btn {
  background: var(--ecate-accent);
  border: 0;
  border-radius: 0;
  color: #1d0f20;
  font-weight: 700;
}

.btn-jupyter:hover,
.btn-primary:hover,
.new-server-btn:hover,
.btn-jupyter:focus,
.btn-primary:focus,
.new-server-btn:focus {
  background: var(--ecate-accent-hover);
  color: #1d0f20;
}

.btn-outline-contrast {
  border-color: var(--ecate-purple);
  color: var(--ecate-purple);
}

.btn-outline-contrast:hover,
.btn-outline-contrast:focus {
  background: var(--ecate-purple);
  color: #ffffff;
}

.ecate-main-shell {
  flex: 1 0 auto;
  position: relative;
}

.ecate-authenticated .ecate-main-shell {
  padding: 40px 0 56px;
}

.ecate-authenticated .ecate-main-shell > .container {
  background: transparent;
}

.ecate-authenticated h1,
.ecate-authenticated h2 {
  color: var(--ecate-text);
  font-weight: 600;
  letter-spacing: 0;
}

#login-main.ecate-login-main,
.ecate-login-main {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  margin: 0;
  max-width: none;
  min-height: calc(100vh - var(--ecate-header-height) - var(--ecate-footer-brand-height));
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px) 24px;
  position: relative;
  width: 100%;
}

.bg-pattern {
  background:
    linear-gradient(110deg, rgba(73, 46, 75, 0.045) 0 18%, transparent 18% 100%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 112px,
      rgba(174, 78, 186, 0.045) 112px,
      rgba(174, 78, 186, 0.045) 178px,
      transparent 178px,
      transparent 300px
    );
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.ecate-login-shell {
  background: var(--ecate-surface);
  border: 1px solid rgba(73, 46, 75, 0.08);
  box-sizing: border-box;
  box-shadow: 0 24px 70px rgba(42, 28, 44, 0.22);
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(460px, 1.05fr);
  max-width: 1180px;
  min-height: 500px;
  margin: 0 auto;
  position: relative;
  width: min(100%, 1180px);
  z-index: 1;
}

.ecate-login-brand {
  background:
    linear-gradient(145deg, rgba(215, 132, 227, 0.22), transparent 42%),
    var(--ecate-purple);
  box-sizing: border-box;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  overflow: hidden;
  padding: clamp(32px, 4vw, 56px);
  position: relative;
}

.ecate-login-brand::before {
  background: rgba(255, 255, 255, 0.08);
  content: "";
  height: 160%;
  position: absolute;
  right: -110px;
  top: -35%;
  transform: rotate(35deg);
  width: 180px;
  z-index: 1;
}

.ecate-statue-art {
  bottom: -108px;
  filter: grayscale(1) brightness(1.08) contrast(0.94);
  height: 118%;
  max-height: 640px;
  mix-blend-mode: screen;
  opacity: 0.38;
  pointer-events: none;
  position: absolute;
  right: -72px;
  transform: rotate(-1deg);
  width: auto;
  z-index: 1;
}

.ecate-kicker {
  color: var(--ecate-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  position: relative;
  text-transform: uppercase;
  z-index: 2;
}

.ecate-login-brand h1 {
  color: #ffffff;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0;
  position: relative;
  z-index: 2;
}

.ecate-brand-copy {
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.5;
  margin: 18px 0 0;
  max-width: 360px;
  position: relative;
  z-index: 1;
}

.ecate-login-form {
  align-self: center;
  background: #ffffff;
  border: 0;
  box-sizing: border-box;
  box-shadow: none;
  margin: 0;
  min-width: 0;
  padding: clamp(40px, 4.6vw, 72px);
  width: 100%;
}

#login-main form {
  max-width: none;
}

#login-main .ecate-login-form {
  max-width: none;
  min-width: 0;
  width: 100%;
}

.login-card-header {
  margin-bottom: 32px;
}

.login-card-header h2 {
  color: var(--ecate-text);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0;
}

.login-subtitle {
  color: var(--ecate-muted);
  font-size: 16px;
  font-weight: 500;
  margin: 10px 0 0;
}

.auth-form-body {
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100%;
}

.form-group {
  margin-bottom: 22px;
}

.control-label,
.ecate-login-form label {
  color: var(--ecate-text);
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  margin-bottom: 8px;
}

.ecate-login-form .form-control {
  background: #ffffff;
  border: 1px solid var(--ecate-border);
  border-radius: 0;
  box-sizing: border-box;
  box-shadow: none;
  color: var(--ecate-text);
  display: block;
  font-size: 16px;
  max-width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  width: 100%;
}

.ecate-login-form .form-control:focus {
  border-color: var(--ecate-purple);
  box-shadow: 0 0 0 3px rgba(215, 132, 227, 0.24);
}

.feedback-container {
  margin-top: 10px;
  position: relative;
}

.ecate-login-submit,
.ecate-login-form input[type="submit"].ecate-login-submit.form-control {
  align-items: center;
  background: var(--ecate-accent) !important;
  border: 0 !important;
  color: #1d0f20 !important;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 700;
  height: 48px;
  justify-content: center;
  padding: 12px 14px;
  width: 100%;
}

.ecate-login-submit:hover,
.ecate-login-submit:focus,
.ecate-login-form input[type="submit"].ecate-login-submit.form-control:hover,
.ecate-login-form input[type="submit"].ecate-login-submit.form-control:focus {
  background: var(--ecate-accent-hover) !important;
}

.login_error {
  background: #fff1f1;
  border-left: 4px solid #c83b3b;
  color: #7a1d1d;
  font-weight: 600;
  margin: 0 0 20px;
  padding: 12px 14px;
}

.login_terms {
  color: var(--ecate-muted);
  font-size: 14px;
  margin-top: 20px;
}

.login_terms a,
.legal-links a {
  text-decoration: none;
}

.login_terms a {
  color: var(--ecate-purple);
  font-weight: 700;
}

.dpaas-footer {
  background: var(--ecate-purple);
  color: #ffffff;
  flex: 0 0 auto;
  width: 100%;
}

.footer-brand-row {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  min-height: var(--ecate-footer-brand-height);
  padding: 10px clamp(24px, 6vw, 72px);
}

.footer-brand {
  align-items: center;
  display: flex;
  gap: 18px;
}

.footer-logo {
  height: 28px;
}

.footer-brand .piattaforma-data-product {
  font-size: 12px;
}

.legal-links {
  display: flex;
  gap: 28px;
}

.legal-links a,
.legal-links span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 700;
}

.legal-links a:hover {
  color: #ffffff;
}

.footer-logos-row {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  min-height: var(--ecate-footer-brand-height);
  padding: 6px clamp(24px, 6vw, 72px);
}

.institutional-logos-left {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.institutional-logos-left img {
  height: 24px;
  width: auto;
}

.institutional-logos-right img {
  height: 24px;
  width: auto;
}

.divider {
  background: rgba(255, 255, 255, 0.18);
  height: 28px;
  width: 1px;
}

@media (max-width: 900px) {
  .ecate-login-main {
    min-height: auto;
  }

  .ecate-login-shell {
    grid-template-columns: 1fr;
    max-width: 620px;
    min-height: auto;
    width: 100%;
  }

  .ecate-login-brand {
    min-height: 260px;
  }

  .ecate-statue-art {
    bottom: -160px;
    height: 150%;
    opacity: 0.24;
    right: -88px;
  }
}

@media (max-width: 768px) {
  .dpaas-header {
    min-height: 72px;
  }

  .dpaas-header-left {
    gap: 14px;
  }

  .dpaas-logo {
    height: 30px;
  }

  .ecate-login-main {
    padding: 28px 16px;
  }

  .ecate-login-form {
    padding: 30px 24px;
  }

  .footer-brand-row,
  .footer-logos-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .legal-links {
    gap: 20px;
  }

  .divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .dpaas-header {
    min-height: 66px;
    padding: 0 18px;
  }

  .dpaas-header-left {
    gap: 12px;
    padding: 14px 0;
  }

  .dpaas-logo {
    height: 28px;
  }

  .header-text,
  .piattaforma-data-product {
    font-size: 10px;
  }

  .ecate-login-main {
    padding: 22px 12px;
  }

  .ecate-login-brand {
    min-height: 220px;
    padding: 28px 22px;
  }

  .ecate-statue-art {
    bottom: -120px;
    height: 132%;
    right: -74px;
  }

  .ecate-login-brand h1 {
    font-size: clamp(30px, 12vw, 42px);
  }

  .ecate-kicker {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .ecate-login-form {
    padding: 26px 18px 28px;
  }

  .login-card-header {
    margin-bottom: 26px;
  }

  .login-card-header h2 {
    font-size: clamp(30px, 11vw, 38px);
  }

  .login-subtitle {
    font-size: 15px;
  }

  .form-group {
    margin-bottom: 18px;
  }

  .ecate-login-form .form-control,
  .ecate-login-submit,
  .ecate-login-form input[type="submit"].ecate-login-submit.form-control {
    min-height: 46px;
  }
}

@media (max-width: 360px) {
  .ecate-login-main {
    padding: 18px 10px;
  }

  .ecate-login-brand {
    min-height: 200px;
    padding: 24px 18px;
  }

  .ecate-login-form {
    padding: 24px 14px 26px;
  }
}