/* ===== RESET BÁSICO ===== */
* {
  box-sizing: border-box;
}

/* ===== BASE ===== */
body.login-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, #f4f6f9, #e9edf3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
}

/* ===== CONTAINER ===== */
.login-container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  animation: fadeIn 0.6s ease;
}

/* ===== LOGO ===== */
.logo {
  width: 110px;
  margin-bottom: 15px;
}

/* ===== TEXTO ===== */
.login-card h2 {
  color: #1f3c88;
  margin-bottom: 5px;
}

.subtitle {
  color: #777;
  margin-bottom: 25px;
}

/* ================================================= */
/* ==================== INPUTS ===================== */
/* ================================================= */

.modern-input {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.modern-input:focus {
  border-color: #1f3c88;
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 60, 136, 0.2);
}

/* ================================================= */
/* ==================== BOTÕES ===================== */
/* ================================================= */

.login-btn {
  display: block;
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: none;
  background: #1f3c88;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.login-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.15);
  transition: 0.3s;
}

.login-btn:hover::after {
  left: 0;
}

.login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ===== CORES POR PERFIL ===== */
.professor { background: #1f3c88; }
.aluno { background: #2a9d8f; }
.admin { background: #e76f51; }
.financeiro { background: #264653; }

/* ================================================= */
/* ==================== LINKS ====================== */
/* ================================================= */

.back-link {
  display: block;
  margin-top: 20px;
  color: #1f3c88;
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

/* ===== ANIMAÇÃO ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
