/*
==============================================================================
CONFIDENTIAL - NON-DISCLOSURE NOTICE
------------------------------------------------------------------------------
This file contains proprietary and confidential information belonging to
The University of Sydney. It is provided under the terms of a Non-Disclosure
Agreement (NDA) and/or Licence Agreement. Any unauthorized copying, sharing, 
or distribution of this code or any part thereof is strictly prohibited.

For the full details of your confidentiality obligations, please refer to
the NDA and/or Licence Agreement under which you have received this code.

© 2023-2025 The University of Sydney. All rights reserved.
==============================================================================
*/


/* main area. Define flex-grow via CSS to be able to override without Bootstrap. */
.welcome-wrapper {
    flex-grow: 1;
}

.cogniti-pulse {
    animation: pulse 10s ease-in-out infinite;
}

/* Welcome screen logo sizing.
   Caps both width and height so non-square branded logos (e.g. wide
   wordmarks or tall lockups) render at a sensible size. The image uses
   ``object-fit: contain`` so its native aspect ratio is preserved within
   the box. */
.welcome-logo {
    width: 100%;
    max-width: 360px;
    max-height: 280px;
    height: auto;
    object-fit: contain;
}

/* Short screens: the logo is decorative, so it gives up height first to keep
   the button and the footer logos on screen. */
@media (max-height: 740px) {
    .welcome-logo {
        max-height: 120px;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Footer logos: position the wrapper, keep logos in normal flow.
   No gap here — spacing is handled by margin-right on the USyd logo
   and padding-left on the custom logo (which carries the border separator).
   The University's lockup needs clear space equal to the height of the letters
   in SYDNEY, which are 122/385 of the lockup image's height. */
.logo-wrapper {
  --usyd-clear-space: calc(70px * 122 / 385);
  position: fixed;
  right: 25px;
  bottom: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 10;
}

.footer-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.footer-logo-usyd {
  height: 70px;
  padding: 0;
  flex-shrink: 0;
}

/* The partner logo shrinks (contained) when the pair is wider than the
   screen; the University's lockup keeps its size. */
.footer-logo-custom {
  border-left: 1px solid #000;
  max-height: 70px;
  min-width: 0;
  margin-left: var(--usyd-clear-space);
  padding-left: 20px;
}

/* Tall but not wide: move logos to bottom center and reduce size. Matches the sidebar collapse breakpoint. */
@media (max-width: 768px) {
  .logo-wrapper {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: var(--usyd-clear-space);
    justify-content: center;
    max-width: calc(100vw - 2 * var(--usyd-clear-space));
  }
}

/* Shorter screens: return the logo to the normal flow. Below about 720px the
   welcome content reaches the fixed logo once the heading wraps to two lines
   (narrow phones, longer translations), so the breakpoint keeps a margin.
   The page fills the screen with the content centred and the logo at the
   bottom, so the logo stays visible with only its clear space around it.
   Phones always use this layout: a partner logo stacked under the lockup is
   too tall to pin to the bottom of the screen. */
@media (max-height: 740px), (max-width: 575.98px) {
  .container-fluid:has(> .welcome-wrapper) {
    height: auto !important;
    min-height: 100%;
  }
  .welcome-wrapper {
    flex-grow: 1;
  }
  .logo-wrapper {
    --usyd-clear-space: calc(60px * 122 / 385);
    position: revert;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    justify-content: center;
    padding: var(--usyd-clear-space) 0;
    max-width: 100%;
  }

  .footer-logo-usyd, .footer-logo-custom {
    max-height: 60px;
  }
}

/* Phones: a partner logo beside the lockup would push both off screen, so it
   goes underneath, separated by the lockup's clear space, and shrinks to fit
   the width. The divider only makes sense side by side. */
@media (max-width: 575.98px) {
  .logo-wrapper {
    flex-direction: column;
    row-gap: var(--usyd-clear-space);
  }
  .footer-logo-custom {
    border-left: 0;
    margin-left: 0;
    padding-left: 0;
    max-width: 100%;
    height: auto;
  }
}