/* Modern Login Style CSS */

:root {
  --primary-color: #0D92E1;
  --secondary-color: #6B5B95;
  --accent-color: #4CAF50;
  --text-color: #333;
  --light-color: #f5f5f5;
  --error-color: #f44336;
  --shadow: 0 8px 16px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
  background-color: var(--light-color);
  background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  transition: var(--transition);
}

.login-card:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.login-header {
  background-color: var(--primary-color);
  padding: 20px;
  text-align: center;
}

.login-logo {
  max-width: 150px;
  margin-bottom: 10px;
}

.login-title {
  color: white;
  font-size: 24px;
  margin: 0;
  font-weight: 500;
}

.login-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  margin-top: 5px;
}

.login-form {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(13, 146, 225, 0.2);
}

.error-message {
  color: var(--error-color);
  font-size: 14px;
  margin-top: 5px;
}

.form-button {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.form-button:hover {
  background-color: #0A7BC1;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #666;
}

.form-footer a {
  color: var(--primary-color);
  text-decoration: none;
}

.form-footer a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .login-card {
    max-width: 100%;
  }
  
  .login-form {
    padding: 20px;
  }
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-card {
  animation: fadeIn 0.5s ease-out;
}