/* Stili comuni per le pagine del Nowcasting Lab */

/* Reset e base */
body {
  background: white;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 20px;
}

/* Header e branding */
.text-center {
  text-align: center;
}

.main-title {
  color: #000000ff;
  font-size: 2.5em;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Logo container */
.logo-container {
  margin-bottom: 20px;
}

.logo-table {
  width: 100%;
  margin: 0 auto;
}

.logo-cell-left {
  width: 25%;
  text-align: center;
}

.logo-cell-spacer {
  width: 5%;
  text-align: center;
}

.logo-cell-right {
  width: 70%;
  text-align: center;
}

.logo-img {
  max-width: 80%;
  height: auto;
}

.partner-img {
  max-width: 100%;
  height: auto;
}

/* Login form styles */
#login-main {
  margin-top: 50px;
}

#login-main .auth-form-header {
  padding: 10px 20px;
  color: #fff;
  background: #f37524;
  background-color: rgb(188, 180, 133);
  font-size: large;
  border-radius: 5px 5px 0 0;
}

#login-main .container {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 480px;
  margin: 0 auto;
  animation: fadeIn 0.6s ease-out;
}

#login-main h1 {
  color: white;
  background: rgba(188, 180, 133, 1);
  margin-bottom: 10px;
  font-weight: 600;
  padding: 15px;
  border-radius: 8px;
}

#login-main .form-control {
  border-radius: 8px;
  border: 2px solid #E0E0E0;
  padding: 12px 16px;
  font-size: 1em;
  transition: all 0.3s ease;
}

#login-main .form-control:focus {
  border-color: #2196F3;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
  outline: none;
}

#login-main label {
  color: #424242;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.95em;
}

#login-main .btn-jupyter {
  background: rgb(188, 180, 133);
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 1.05em;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

#login-main .btn-jupyter:hover {
  background: linear-gradient(135deg, #d4e820ff 0%, #c0af15ff 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 243, 114, 0.4);
}

#login-main .btn-jupyter:active {
  transform: translateY(0);
}

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

/* Instructions box */
.instructions-box {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  padding: 15px;
  border-radius: 8px;
}

.instructions-text {
  color: #ffffffff;
  font-size: 0.9em;
  margin: 0;
}

/* Error page styles */
.error-container {
  max-width: 800px;
  margin: 40px auto;
  animation: fadeIn 0.6s ease-out;
}

.error-content {
  background: white;
  border-radius: 16px;
  padding: 50px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.error-icon {
  margin-bottom: 30px;
  animation: pulse 2s ease-in-out infinite;
}

.error-title {
  color: #f37524;
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 25px;
  margin-top: 0;
}

.error-message {
  background: rgba(243, 117, 36, 0.05);
  border-left: 4px solid #f37524;
  padding: 25px;
  margin: 30px 0;
  text-align: left;
  border-radius: 8px;
}

.error-message p {
  color: #333;
  font-size: 1.05em;
  line-height: 1.6;
  margin: 10px 0;
}

.error-message ul {
  margin: 15px 0;
  padding-left: 25px;
  color: #555;
}

.error-message li {
  margin: 8px 0;
  line-height: 1.5;
}

.error-actions {
  margin: 35px 0;
}

.error-actions p {
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.btn-action {
  display: inline-block;
  padding: 14px 32px;
  margin: 10px 8px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, rgb(188, 180, 133) 0%, rgba(188, 180, 133, 0.85) 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d4e820ff 0%, #c0af15ff 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(188, 180, 133, 0.4);
}

.btn-secondary {
  background: white;
  color: #f37524;
  border: 2px solid #f37524;
}

.btn-secondary:hover {
  background: #f37524;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 117, 36, 0.3);
}

.error-help {
  border-top: 1px solid #e0e0e0;
  padding-top: 25px;
  margin-top: 30px;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85em;
}

footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

footer a:hover {
  color: white;
  border-bottom-color: white;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .error-content {
    padding: 35px 25px;
  }

  .error-title {
    font-size: 2em;
  }

  .btn-action {
    display: block;
    margin: 10px 0;
  }

  .error-icon svg {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 576px) {
  #login-main .container {
    padding: 30px 20px;
    margin: 20px;
  }

  h1, .main-title {
    font-size: 1.8em !important;
  }

  .error-title {
    font-size: 1.6em;
  }

  .error-message {
    padding: 20px;
    font-size: 0.95em;
  }

  .logo-cell-left,
  .logo-cell-spacer,
  .logo-cell-right {
    display: block;
    width: 100% !important;
    margin-bottom: 10px;
  }
}

/* Logout page specific styles */
.logout-title {
  color: rgb(188, 180, 133);
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 25px;
  margin-top: 0;
}

.logout-message {
  background: rgba(188, 180, 133, 0.05);
  border-left: 4px solid rgb(188, 180, 133);
  padding: 25px;
  margin: 30px 0;
  text-align: left;
  border-radius: 8px;
}

.logout-tips {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(188, 180, 133, 0.2);
}

.logout-info {
  border-top: 1px solid #e0e0e0;
  padding-top: 25px;
  margin-top: 30px;
}
