/* Global */
* { box-sizing: border-box; }
html, body { height: 100%; }
body { 
  margin: 0; 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
  color: #1b1b18; 
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif; 
}

/* Layout */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-grid {
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1fr;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .login-grid { 
    grid-template-columns: 1fr 1fr; 
    min-height: 600px;
  }
}

/* Left Side - Illustration */
.login-left {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.illustration-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-illustration {
  position: relative;
  z-index: 2;
}

.book-svg {
  width: 200px;
  height: 140px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.education-icons {
  position: absolute;
  width: 100%;
  height: 100%;
}

.icon-item {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: float 6s ease-in-out infinite;
}

.icon-item svg {
  width: 20px;
  height: 20px;
}

.calculator {
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}

.pencil {
  top: 20%;
  right: 10%;
  animation-delay: 1s;
}

.bulb {
  bottom: 30%;
  left: 10%;
  animation-delay: 2s;
}

.compass {
  bottom: 15%;
  right: 20%;
  animation-delay: 3s;
}

.microscope {
  top: 50%;
  left: 5%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Right Side - Form */
.login-right {
  background: #ffffff;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-form-container {
  width: 100%;
  max-width: 400px;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}

.login-subtitle {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Form Styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.input-relative {
  position: relative;
}

.login-input {
  width: 100%;
  height: 48px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 40px 0 16px;
  font-size: 14px;
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.login-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-input::placeholder {
  color: #9ca3af;
}

.icon-right {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.icon-16 {
  width: 20px;
  height: 20px;
}

/* Checkbox */
.checkbox-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-input {
  width: 16px;
  height: 16px;
  accent-color: #667eea;
}

.checkbox-text {
  font-size: 14px;
  color: #374151;
}

.forgot-link {
  font-size: 14px;
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(102, 126, 234, 0.4);
}

.btn-google {
  background: #ffffff;
  color: #374151;
  border: 2px solid #e5e7eb;
  font-weight: 500;
}

.btn-google:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

/* Divider */
.divider {
  text-align: center;
  position: relative;
  margin: 8px 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
}

.divider span {
  background: #ffffff;
  padding: 0 16px;
  font-size: 12px;
  color: #9ca3af;
  position: relative;
}

/* Register Link */
.register-link {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
}

.register-link span {
  color: #6b7280;
}

.register-link a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.register-link a:hover {
  text-decoration: underline;
}

/* Alert */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.alert ul {
  margin: 0;
  padding-left: 16px;
}

.alert li {
  font-size: 14px;
}

/* Responsive */
@media (max-width: 767px) {
  .login-container {
    padding: 10px;
  }
  
  .login-grid {
    grid-template-columns: 1fr;
  }
  
  .login-left {
    display: none;
  }
  
  .login-right {
    padding: 30px 20px;
  }
}