:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #93c5fd;
  --primary-dark: #1d4ed8;
  --bg-color: #f8fafc;
  --form-bg: #ffffff;
  --text-color: #0f172a;
  --text-muted: #64748b;
  --error-color: #dc2626;
  --success-color: #16a34a;
  --border-color: #e2e8f0;
  --shadow-color: rgba(15, 23, 42, 0.1);
  --input-bg: #f1f5f9;
  --hover-bg: rgba(59, 130, 246, 0.1);
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--text-color);
}

.page-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-container {
  width: 100%;
  max-width: 900px;
  display: flex;
  gap: 2rem;
  position: relative;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 4px 6px -1px rgba(15, 23, 42, 0.1),
    0 2px 4px -2px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
}

.brand-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 1.5rem;
  border: solid 3px;
  border-color: var(--primary-color);
}

.welcome-text {
  font-size: 1.5rem;
  color: var(--text-color);
  text-align: center;
  font-weight: 500;
  margin: 0;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.login-form {
  flex: 1;
  max-width: 420px;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 4px 6px -1px rgba(15, 23, 42, 0.05),
    0 2px 4px -2px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1.5rem;
}

.decoration-element {
  position: absolute;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  opacity: 0.15;
  bottom: -75px;
  right: -75px;
  z-index: -1;
}

h1 {
  text-align: center;
  color: var(--text-color);
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

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

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

.input-icon-wrapper i {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
}

.toggle-password {
position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

.toggle-password:hover {
  color: var(--primary-color);
  background-color: var(--hover-bg);
}

.toggle-password:active {
  transform: scale(0.95);
}

.toggle-password:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-color);
}

.toggle-password i {
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.5rem;
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: var(--input-bg);
  color: var(--text-color);
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
  border-color: var(--primary-color);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  cursor: pointer;
  font-size: 0.875rem;
}

input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 2px solid var(--border-color);
  cursor: pointer;
  accent-color: var(--primary-color);
}

.login-button {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 
    0 1px 3px 0 rgba(15, 23, 42, 0.1),
    0 1px 2px -1px rgba(15, 23, 42, 0.1);
}

.login-button:not(:disabled):hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary-dark));
  box-shadow: 
    0 10px 15px -3px rgba(59, 130, 246, 0.3),
    0 4px 6px -4px rgba(59, 130, 246, 0.3);
}

.login-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

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

.error-message {
  color: var(--error-color);
  font-size: 0.75rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 1rem;
}

.login-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.login-status.error {
  background-color: #fef2f2;
  color: var(--error-color);
  border: 1px solid #fee2e2;
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 1px 3px 0 rgba(220, 38, 38, 0.1);
}

.login-status.success {
  background-color: #f0fdf4;
  color: var(--success-color);
  border: 1px solid #dcfce7;
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 1px 3px 0 rgba(22, 163, 74, 0.1);
}

@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    padding: 1rem;
  }

  .brand-section {
    padding: 1rem;
  }

  .login-form {
    padding: 1.5rem;
  }

  .logo {
    max-width: 150px;
  }

  .welcome-text {
    font-size: 1.25rem;
  }

  h1 {
    font-size: 1.5rem;
  }
}

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

.login-container {
  animation: fadeIn 0.6s ease-out;
}