/* assets/css/style.css */

/* ===== VARIABLES ===== */
:root {
  --primary-color: #4361ee;
  --primary-dark: #3a56d4;
  --secondary-color: #3f37c9;
  --accent-color: #4895ef;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --success-color: #4bb543;
  --error-color: #ff3333;
  --border-radius: 8px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7ff;
  color: var(--dark-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #f5f7ff 0%, #e8ecff 100%);
}

/* ===== LOGIN CONTAINER ===== */
.login-container {
  width: 100%;
  max-width: 450px;
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transform: translateY(0);
  transition: var(--transition);
  animation: fadeInUp 0.5s ease;
}

.login-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.login-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-color);
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: 2px solid #e0e3ff;
  border-radius: var(--border-radius);
  transition: var(--transition);
  background-color: #f8f9ff;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
  background-color: white;
}

/* ===== BUTTON STYLES ===== */
.btn-login {
  width: 100%;
  padding: 0.9rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
}

.btn-login:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== LINK STYLES ===== */
.login-container p {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
  font-size: 0.95rem;
}

.login-container a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.login-container a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ===== ALERT MESSAGES ===== */
.alert {
  padding: 0.8rem 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
}

.alert-error {
  background-color: rgba(255, 51, 51, 0.1);
  color: var(--error-color);
  border: 1px solid rgba(255, 51, 51, 0.2);
}

.alert-success {
  background-color: rgba(75, 181, 67, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(75, 181, 67, 0.2);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 576px) {
  .login-container {
    padding: 1.5rem;
  }
  
  .main-wrapper {
    padding: 1rem;
  }
}

/* ===== DECORATIVE ELEMENTS ===== */
.login-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Floating background elements */
body::after {
  content: '';
  position: fixed;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background-color: rgba(72, 149, 239, 0.1);
  border-radius: 50%;
  z-index: -1;
}

body::before {
  content: '';
  position: fixed;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background-color: rgba(67, 97, 238, 0.1);
  border-radius: 50%;
  z-index: -1;
}