

/* ===== Reset & basics ===== */
* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  margin: 0; padding: 0;
}

body, html {
  height: 100%;
  background: #f0f2f5;
  color: #1c1e21;
}

/* SPLASH SCREEN */
#splash-screen {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	color: #293440;
	z-index: 9999;
}

.splash-content {
  text-align: center;
}

.splash-logo {
  height: 80px;
  margin-bottom: 15px;
}

.splash-content h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.splash-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* loader animé */
.loader {
  border: 5px solid #fff;
  border-top: 5px solid #4267b2;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* HEADER */
.app-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: relative;
  z-index: 10;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  max-width: 1000px;
  width: 100%;
}

.logo {
  height: 36px;
}

.school-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1c1e21;
}

/* CONTENU PRINCIPAL */
.page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
  margin-top: 0;
  min-height: calc(100vh - 70px);
}

/* Left panel texte */
.left-panel {
  max-width: 400px;
  color: #050505;
}

.left-panel h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
}

.left-panel p {
  font-size: 1.1rem;
  line-height: 1.4;
  color: #606770;
}

/* Right panel form */
.right-panel {
  background: #fff;
  padding: 30px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
  width: 350px;
}

/* Form titles */
.right-panel h2 {
  margin-bottom: 25px;
  font-weight: 700;
  font-size: 1.8rem;
  color: #050505;
}

/* Input groups */
.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group input {
  width: 100%;
  border: 1px solid #ccd0d5;
  border-radius: 6px;
  padding: 12px 40px 12px 40px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
  color: #050505;
}

.input-group input:focus {
  border-color: #1877f2;
}

.input-group label {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #606770;
  font-size: 1rem;
  pointer-events: none;
  transition: 0.2s ease all;
}

/* label move up on input focus or filled */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: 5px;
  font-size: 0.75rem;
  color: #1877f2;
  background: #fff;
  padding: 0 5px;
}

/* icons inside inputs */
.input-group .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #606770;
  font-size: 1.1rem;
  pointer-events: none;
}

/* toggle password eye */
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2rem;
  color: #606770;
  user-select: none;
}

/* Button */
.btn-primary {
  background: #1877f2;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 0;
  width: 100%;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background: #145dbf;
}

/* Forgot password */
.forgot-password {
  text-align: right;
  margin-top: 15px;
}

.forgot-password a {
  color: #1877f2;
  font-size: 0.9rem;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* Error message */
.error-message {
	margin: 15px auto;
	font-size: 0.9rem;
	color: #d93025;
	text-align: center;
	/* padding: 5px 0; */
}

/* Responsive */
@media screen and (max-width: 768px) {
  .page-container {
    flex-direction: column;
    gap: 30px;
    padding: 20px 15px;
    min-height: auto;
  }
  .right-panel {
    width: 100%;
    max-width: 400px;
  }
  .left-panel {
    max-width: 100%;
    text-align: center;
  }
}