/* Anonymous Frontpage Styles */
.anonymous-frontpage {
  animation: fadeIn 0.5s ease-in;
}

/* Hide all blocks and regions on anonymous frontpage */
body.anonymous-frontpage-view .main-sidebar,
body.anonymous-frontpage-view .region-header,
body.anonymous-frontpage-view .region-primary-menu,
body.anonymous-frontpage-view .region-secondary-menu,
body.anonymous-frontpage-view .region-breadcrumb,
body.anonymous-frontpage-view .region-highlighted,
body.anonymous-frontpage-view .region-help,
body.anonymous-frontpage-view .region-sidebar-first,
body.anonymous-frontpage-view .region-sidebar-second,
body.anonymous-frontpage-view .region-footer,
body.anonymous-frontpage-view .toolbar,
body.anonymous-frontpage-view .toolbar-tray,
body.anonymous-frontpage-view #toolbar-administration,
body.anonymous-frontpage-view header,
body.anonymous-frontpage-view footer,
body.anonymous-frontpage-view aside,
body.anonymous-frontpage-view nav,
body.anonymous-frontpage-view .block-openid-connect-login {
  display: none !important;
}

/* Ensure the main content takes full space */
body.anonymous-frontpage-view #main-content-wrapper {
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
}

body.anonymous-frontpage-view {
  margin: 0 !important;
  padding: 0 !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Google button hover effect */
.google-signin-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Logo animation */
.logo-icon {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

/* Style the OpenID Connect form */
.openid-connect-form-wrapper form {
  margin: 0;
}

.openid-connect-form-wrapper .form-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  color: #374151;
  background-color: white;
  font-size: 1rem;
  font-weight: 500;
  transition: all 200ms;
  cursor: pointer;
}

.openid-connect-form-wrapper .form-submit:hover {
  background-color: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Add Google icon to the button */
.openid-connect-form-wrapper .form-submit[value*="Google"]:before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 12px;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="%234285F4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"/><path fill="%2334A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"/><path fill="%23FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"/><path fill="%23EA4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}