/* Background image for the whole page */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url('../../assets/bg_students.png') no-repeat center center fixed;
    background-size: cover;
}

/* Center the login container */
.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80vh;
}

/* Logo placeholder */
.logo {
    background: url('../../assets/logo.png') no-repeat center;
    background-size: contain;
    width: 300px;
    height: 120px;
    margin-bottom: 40px;
}

/* Login form container */
.login-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-container label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.login-container input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn-primary {
    background-color: #00bcd4;
    color: white;
    border: none;
    padding: 10px;
    margin-top: 15px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
}

.spacer {
    margin-bottom: 20px;
}

.btn-primary:hover {
    background-color: #0097a7;
}

.forgot-password {
    display: block;
    margin-top: 10px;
    text-align: left;
    font-size: 0.9em;
    color: #333;
    text-decoration: underline;
}

.alt-login {
    text-align: center;
    margin-top: 20px;
}

.btn-secondary {
    background-color: #7b2ff7;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #6921d1;
}

.oauth-button {
    display: inline-block;
    background-color: #00babc;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.oauth-button:hover {
    background-color: #009a9c;
}

/* ===== Global App Modal ===== */
.app-modal.hidden { display: none; }

.app-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center;
  background: rgba(0,0,0,.45);
  animation: overlayFade .18s ease-out;
}

/* Card */
.app-modal__card {
  position: relative;
  width: min(640px, 92vw);
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  padding: 20px 20px 16px;
  animation: dropIn .28s cubic-bezier(.2,.8,.2,1);
}

/* Header / Body / Footer */
.app-modal__title {
  margin: 0 0 8px 0;
  font-weight: 800;
  font-size: 18px;
}
.app-modal__body {
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}
.app-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* Buttons */
.app-btn {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.app-btn:focus-visible { outline: 2px solid #6c3bf5; outline-offset: 2px; }
.app-btn--primary {
  background: #6c3bf5;
  border-color: #6c3bf5;
  color: #fff;
}

/* Close (X) */
.app-modal__close {
  position: absolute;
  top: 10px; right: 12px;
  border: none; background: transparent;
  font-size: 22px; line-height: 1; cursor: pointer;
}

/* Animations: fade overlay + drop from top to center */
@keyframes overlayFade {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes dropIn {
  0%   { transform: translateY(-25vh) scale(.98); opacity: 0; }
  60%  { transform: translateY(4vh) scale(1); opacity: 1; }
  100% { transform: translateY(0); }
}

