/* login.css - Modern login page styling for OJS */

:root {
  --primary-color: #7ed957;
  --primary-light: #a5e685;
  --primary-dark: #5eac37;
  --background-color: #d6f2b0;
  --card-bg-color: #ffffff;
  --text-color: #333333;
  --text-light: #666666;
  --error-color: #e74c3c;
  --info-color: #3498db;
  --border-radius: 12px;
  --box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* Global Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page_login {
  display: flex;
  min-height: 90vh;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%237ed957' fill-opacity='0.05' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'/%3E%3C/svg%3E");
}

/* Container Styles */
.page_login {
  border-radius: var(--border-radius);
  background-color: var(--background-color);
  box-shadow: var(--box-shadow);
  position: relative;
  z-index: 1;
  margin: 20px;
  border: 20px solid #333;
  border-radius: 40px;
  overflow: hidden;
}

/* Logo Styles */
.login-logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-bottom: 20px;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.login-logo {
  width: 70px;
  height: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 8px;
}

/* Login Wrapper */
.login-wrapper {
  width: 50%;
  max-width: 450px;
  padding: 40px;
  background-color: var(--card-bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-left: auto;
  position: relative;
  z-index: 2;
}

/* Login Header */
.login-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-color);
}

.login-header p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Form Styles */
.cmp_form {
  width: 100%;
}

.fields {
  border: none;
  padding: 0;
  margin: 0;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 30px;
  font-size: 1rem;
  transition: var(--transition);
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(126, 217, 87, 0.2);
}

/* Password Field */
.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

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

/* Remember Me */
.form-group.remember {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.form-group.remember input[type="checkbox"] {
  margin-right: 8px;
  accent-color: var(--primary-color);
  width: 16px;
  height: 16px;
}

.form-group.remember label {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-light);
  cursor: pointer;
}

/* Forgot Password */
.forgot-link {
  display: block;
  text-align: right;
  margin-top: 8px;
}

.forgot-link a {
  color: var(--text-light);
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
}

.forgot-link a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Button Styles */
.button-wrapper {
  margin-top: 30px;
}

button.submit {
  width: 100%;
  padding: 14px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

button.submit:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Register Link */
.register-text {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.register-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.register-link:hover {
  text-decoration: underline;
}

/* Error/Info Messages */
.pkp_form_error, .info-message {
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.pkp_form_error {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--error-color);
  border-left: 4px solid var(--error-color);
}

.info-message {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--info-color);
  border-left: 4px solid var(--info-color);
}

.pkp_form_error i, .info-message i {
  margin-right: 8px;
}

/* 3D Illustration Area */
.illustration-area {
  width: 50%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.illustration-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 40px;
}

/* Decoration Elements */
.decoration {
  position: absolute;
  z-index: 0;
}

.plant-pot {
  width: 60px;
  height: 80px;
  background-color: #ffffff;
  border-radius: 10px;
  position: absolute;
  bottom: 140px;
  left: 80px;
}

.plant {
  position: absolute;
  bottom: 190px;
  left: 90px;
  width: 40px;
  height: 60px;
  background-color: var(--primary-light);
  border-radius: 50% 50% 0 0;
}

.clock {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #333;
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.clock::before {
  content: "";
  width: 2px;
  height: 15px;
  background-color: #333;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%) rotate(45deg);
  transform-origin: bottom center;
}

.clock::after {
  content: "";
  width: 2px;
  height: 10px;
  background-color: #333;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%) rotate(-45deg);
  transform-origin: bottom center;
}

.desk {
  width: 200px;
  height: 10px;
  background-color: #70896b;
  position: absolute;
  bottom: 100px;
  left: 150px;
  border-radius: 4px;
}

.desk-leg-left {
  width: 8px;
  height: 80px;
  background-color: #ffffff;
  position: absolute;
  bottom: 20px;
  left: 160px;
  border-radius: 4px;
}

.desk-leg-right {
  width: 8px;
  height: 80px;
  background-color: #ffffff;
  position: absolute;
  bottom: 20px;
  left: 280px;
  border-radius: 4px;
}

.character {
  width: 70px;
  height: 120px;
  position: absolute;
  bottom: 130px;
  left: 200px;
}

.character-head {
  width: 40px;
  height: 40px;
  background-color: #f8d9b5;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 15px;
}

.character-body {
  width: 60px;
  height: 70px;
  background-color: var(--primary-color);
  border-radius: 20px 20px 0 0;
  position: absolute;
  top: 35px;
  left: 5px;
}

.character-legs {
  width: 40px;
  height: 40px;
  background-color: #3d5afe;
  border-radius: 0 0 10px 10px;
  position: absolute;
  top: 80px;
  left: 15px;
}

.laptop {
  width: 70px;
  height: 50px;
  background-color: #444;
  position: absolute;
  bottom: 140px;
  left: 215px;
  border-radius: 4px;
  transform: perspective(200px) rotateX(45deg);
}

.laptop::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 40px;
  background-color: #666;
  top: 5px;
  left: 5px;
  border-radius: 2px;
}

/* Social Sign-in */
.social-signin {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f5f5f5;
  color: var(--text-color);
  border: 1px solid #ddd;
  cursor: pointer;
  transition: var(--transition);
}

.social-button:hover {
  background-color: #e9e9e9;
  transform: translateY(-2px);
}

.or-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #ddd;
}

.or-divider::before {
  margin-right: 10px;
}

.or-divider::after {
  margin-left: 10px;
}

/* Terms Text */
.terms-text {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 20px;
}

.terms-link {
  color: var(--primary-color);
  text-decoration: none;
}

.terms-link:hover {
  text-decoration: underline;
}

/* Mobile Styles */
@media (max-width: 992px) {
  .page_login {
    flex-direction: column;
    border-width: 12px;
  }

  .login-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    margin-top: 40px;
  }

  .illustration-area {
    width: 100%;
    height: 300px;
    order: -1;
  }

  .illustration-content {
    padding: 10;
  }

  .login-logo-wrapper {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 0;
  }

  .desk, .desk-leg-left, .desk-leg-right, .character, .laptop, .plant, .plant-pot {
    transform: scale(0.8);
  }
}

@media (max-width: 576px) {
  .page_login {
    margin: 10px;
    border-width: 8px;
    border-radius: 30px;
  }

  .login-wrapper {
    padding: 30px 20px;
  }

  .illustration-area {
    height: 200px;
  }

  .desk, .desk-leg-left, .desk-leg-right, .character, .laptop, .plant, .plant-pot {
    transform: scale(1);
  }

  .login-header h1 {
    font-size: 1.8rem;
  }
}

/* Focus outline for accessibility */
button:focus,
a:focus,
input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Hide screens reader only text */
.pkp_screen_reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Additional OJS compatibility */
#header {
  display: none;
}

.pkp_structure_page {
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
}

#main {
  background: transparent;
  padding: 0;
}

.pkp_structure_main {
  padding: 0;
  width: 100%;
  float: none;
}