/* Variables */
:root {
  --primary-color: #0066b3;
  --secondary-color: #0099cc;
  --accent-color: #00aeef;
  --dark-color: #333333;
  --light-color: #f5f9ff;
  --gray-color: #e6e9ed;
  --text-color: #2d3748;
  --border-color: #e2e8f0;
  --error-color: #e53e3e;
  --success-color: #38a169;
  --warning-color: #dd6b20;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.hidden {
  display: none !important;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--gray-color);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Main Content */
.main {
  flex: 1;
  padding: 40px 0;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: calc(100vh - 60px);
}

.login-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* Logo Container */
.logo-container {
  text-align: center;
  margin-bottom: 30px;
}

.logo {
  max-width: 280px;
  height: auto;
}

/* Card Styles */
.login-card {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 35px;
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Card Header */
.card-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-content h2 {
  color: var(--primary-color);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 15px;
}

.form-description {
  color: #718096;
  font-size: 15px;
  line-height: 1.5;
}

/* Form Styles */
.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 15px;
  color: #a0aec0;
}

.form input[type="email"] {
  width: 100%;
  padding: 14px 15px 14px 45px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  transition: var(--transition);
  background-color: #f8fafc;
}

.form input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.1);
  background-color: #fff;
}

/* Button Styles */
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
}

.btn i {
  margin-right: 8px;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 102, 179, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Success Container */
.success-container {
  text-align: center;
  margin-bottom: 30px;
}

.confirmation-icon {
  font-size: 64px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.email-sent-to {
  background-color: #f8fafc;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid var(--primary-color);
}

.email-sent-to span {
  color: var(--primary-color);
  font-weight: 600;
}

/* Info Box */
.info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: #f8fafc;
  padding: 15px;
  border-radius: 8px;
  margin-top: 25px;
}

.info-box i {
  color: var(--primary-color);
  font-size: 20px;
}

.info-box p {
  font-size: 14px;
  color: #718096;
  margin: 0;
}

/* Footer */
.footer {
  background-color: #fff;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.copyright {
  font-size: 14px;
  color: #718096;
}

/* Notification Styles */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.notification {
  background-color: #fff;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  animation: slideIn 0.3s ease;
  min-width: 280px;
}

.notification.success {
  border-left: 4px solid var(--success-color);
}

.notification.error {
  border-left: 4px solid var(--error-color);
}

.notification-close {
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
  font-size: 18px;
}

.notification.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.error-message {
  color: var(--error-color);
  font-size: 12px;
  margin-top: 5px;
}

input.error {
  border-color: var(--error-color) !important;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 576px) {
  .main {
    padding: 20px 0;
  }

  .logo {
    max-width: 220px;
  }

  .login-card {
    padding: 25px 20px;
    margin: 0 15px;
  }

  .confirmation-actions {
    flex-direction: column;
  }

  .btn {
    padding: 12px 16px;
    font-size: 15px;
  }
}

