/* ==========================================================================
   Go Up Sistema - Login Page Styles
   Modern Educational Design (copiado do sistema antigo)
   ========================================================================== */

/* CSS Variables - Brand Colors */
:root {
  --goup-blue: #5dade2;
  --goup-blue-dark: #3498db;
  --goup-blue-light: #85c1e9;
  --goup-dark: #2c3e50;
  --goup-dark-light: #34495e;
  --goup-white: #ffffff;
  --goup-gray-light: #f8f9fa;
  --goup-shadow: rgba(93, 173, 226, 0.3);
  --goup-shadow-dark: rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, #5dade2 0%, #3498db 100%);
  --gradient-hero: linear-gradient(
    135deg,
    #2c3e50 0%,
    #3498db 50%,
    #5dade2 100%
  );
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family:
    "Segoe UI",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  overflow: hidden;
}

/* Main Container */
.login-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* Hero Section - Left Side (2/3) */
.hero-section {
  flex: 2;
  background: var(--gradient-hero);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

/* Floating Educational Icons */
.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.float-icon {
  position: absolute;
  font-size: 3rem;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}

.float-icon:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}
.float-icon:nth-child(2) {
  top: 20%;
  right: 15%;
  animation-delay: 1s;
}
.float-icon:nth-child(3) {
  bottom: 25%;
  left: 20%;
  animation-delay: 2s;
}
.float-icon:nth-child(4) {
  bottom: 15%;
  right: 10%;
  animation-delay: 3s;
}
.float-icon:nth-child(5) {
  top: 50%;
  left: 5%;
  animation-delay: 4s;
}
.float-icon:nth-child(6) {
  top: 40%;
  right: 25%;
  animation-delay: 5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Hero Logo */
.hero-logo {
  z-index: 1;
  max-width: 450px;
  width: 70%;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

.hero-tagline {
  z-index: 1;
  color: var(--goup-white);
  font-size: 1.5rem;
  font-weight: 300;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Login Section - Right Side (1/3) */
.login-section {
  flex: 1;
  background: var(--goup-white);
  display: flex;
  flex-direction: column;
  min-width: 380px;
}

/* Top Menu Links */
.top-menu {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  padding: 1.5rem 2rem;
}

.top-menu a {
  color: var(--goup-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.top-menu a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--goup-blue);
  transition: width 0.3s ease;
}

.top-menu a:hover {
  color: var(--goup-blue);
}

.top-menu a:hover::after {
  width: 100%;
}

/* Login Form Container */
.login-form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Small Logo */
.login-logo {
  width: 180px;
  margin-bottom: 2rem;
  animation: fadeIn 0.5s ease-out;
}

/* Welcome Text */
.welcome-text {
  text-align: center;
  margin-bottom: 2rem;
}

.welcome-text h2 {
  color: var(--goup-dark);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.welcome-text p {
  color: var(--goup-dark-light);
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Form Styles */
.login-form {
  width: 100%;
  max-width: 320px;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  color: var(--goup-dark);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--goup-blue);
  font-size: 1rem;
  opacity: 0.7;
}

.form-input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: var(--goup-gray-light);
}

.form-input:focus {
  outline: none;
  border-color: var(--goup-blue);
  background: var(--goup-white);
  box-shadow: 0 0 0 4px var(--goup-shadow);
}

.form-input::placeholder {
  color: #a0a0a0;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--gradient-primary);
  color: var(--goup-white);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--goup-shadow);
  margin-top: 0.5rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--goup-shadow);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Alert Styles */
.alert-error {
  width: 100%;
  max-width: 320px;
  padding: 0.8rem 1rem;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #dc2626;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

.alert-error.show {
  display: block;
  animation: shake 0.4s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Toast de notificação */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(239, 68, 68, 0.4);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 90%;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 10px 40px rgba(245, 158, 11, 0.4);
}
.toast.info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
}
.toast i {
  font-size: 20px;
}

/* Responsive Design */
@media (max-width: 900px) {
  .login-container {
    flex-direction: column;
  }

  .hero-section {
    flex: 0 0 35%;
    min-height: 200px;
  }

  .hero-logo {
    max-width: 200px;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .login-section {
    flex: 1;
    min-width: unset;
  }
}

@media (max-width: 480px) {
  .hero-section {
    flex: 0 0 25%;
  }

  .hero-logo {
    max-width: 150px;
    margin-bottom: 1rem;
  }

  .hero-tagline {
    font-size: 0.85rem;
    display: none;
  }

  .top-menu {
    padding: 1rem;
    gap: 1.5rem;
  }

  .login-form-container {
    padding: 1.5rem;
  }

  .login-logo {
    width: 140px;
  }

  .welcome-text h2 {
    font-size: 1.3rem;
  }
}
