/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8fafc;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Main container */
.login-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Background image */
.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/newcorellahall.jpg") center center/cover no-repeat;
  opacity: 0.3;
  z-index: -1;
}

/* Login wrapper */
.login-wrapper {
  width: 100%;
  max-width: 420px;
  z-index: 1;
}

/* Login card */
.login-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header section */
.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.logo-container {
  margin-bottom: 20px;
}

.logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.app-title {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.welcome-text {
  font-size: 16px;
  color: #64748b;
  font-weight: 400;
  line-height: 1.5;
}

/* Form styles */
.login-form {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  font-size: 16px;
  z-index: 2;
}

.form-input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: #1e293b;
  background: #f8fafc;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  background: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-input:focus + .input-icon {
  color: #3b82f6;
}

/* Login button */
.login-button {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.login-button:active {
  transform: translateY(0);
}

.login-button i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.login-button:hover i {
  transform: translateX(4px);
}

/* Alert styles */
.alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.alert p {
  margin: 0;
}

/* Footer */
.login-footer {
  text-align: center;
}

.login-footer p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .login-container {
    padding: 16px;
  }
  
  .login-card {
    padding: 32px 24px;
    border-radius: 16px;
  }
  
  .logo {
    width: 70px;
    height: 70px;
  }
  
  .app-title {
    font-size: 24px;
  }
  
  .welcome-text {
    font-size: 15px;
  }
  
  .form-input {
    padding: 14px 14px 14px 44px;
    font-size: 15px;
  }
  
  .input-icon {
    left: 14px;
    font-size: 15px;
  }
  
  .login-button {
    padding: 14px 20px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 12px;
  }
  
  .login-card {
    padding: 28px 20px;
    border-radius: 12px;
  }
  
  .logo {
    width: 60px;
    height: 60px;
  }
  
  .app-title {
    font-size: 22px;
  }
  
  .welcome-text {
    font-size: 14px;
  }
  
  .form-input {
    padding: 12px 12px 12px 40px;
    font-size: 14px;
  }
  
  .input-icon {
    left: 12px;
    font-size: 14px;
  }
  
  .login-button {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .login-footer p {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .login-card {
    padding: 24px 16px;
  }
  
  .logo {
    width: 50px;
    height: 50px;
  }
  
  .app-title {
    font-size: 20px;
  }
  
  .welcome-text {
    font-size: 13px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background: #0f172a;
  }
  
  .login-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .app-title {
    color: #f1f5f9;
  }
  
  .welcome-text {
    color: #94a3b8;
  }
  
  .form-input {
    background: #334155;
    border-color: #475569;
    color: #f1f5f9;
  }
  
  .form-input::placeholder {
    color: #64748b;
  }
  
  .login-footer p {
    color: #94a3b8;
  }
}

