/* style.css - Modern Redesign */

:root {
  --primary-color: #4361ee;
  --primary-dark: #3a56d4;
  --secondary-color: #7209b7;
  --accent-color: #f72585;
  --success-color: #4cc9f0;
  --light-bg: #f8f9fa;
  --dark-bg: #1a1a2e;
  --text-dark: #2b2d42;
  --text-light: #8d99ae;
  --border-color: #e0e0e0;
  --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: "Signika", sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  line-height: 1.6;
}

.auth-main {
  width: 100%;
  padding: 20px;
  animation: fadeIn 0.8s ease-out;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Trial Button */
.trial-container {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 100;
}

.btn-trial-modern {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--secondary-color)
  );
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-trial-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 37, 133, 0.4);
  color: white;
  text-decoration: none;
}

/* Login Wrapper */
.login-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 700px;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  animation: slideUp 0.8s ease-out;
}

/* Brand Panel */
.brand-panel {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.brand-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path fill="rgba(255,255,255,0.03)" d="M0,500Q0,250,250,250Q500,250,500,500Q500,750,250,750Q0,750,0,500Z"/></svg>');
  background-size: cover;
  opacity: 0.1;
}

.brand-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.brand-logo {
  margin-bottom: 40px;
  
}

.brand-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.brand-title span {
  display: block;
  color: var(--success-color);
  font-weight: 300;
}

.brand-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 40px;
}

.brand-features {
  margin: 40px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(10px);
}

.feature-item i {
  font-size: 1.5rem;
  color: var(--success-color);
}

.feature-item span {
  font-size: 1rem;
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 40px;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.1rem;
}

.social-icon:hover {
  background: white;
  transform: translateY(-3px);
}

.social-icon.facebook:hover {
  color: #1877f2;
}
.social-icon.twitter:hover {
  color: #1da1f2;
}
.social-icon.linkedin:hover {
  color: #0077b5;
}
.social-icon.youtube:hover {
  color: #ff0000;
}

/* Login Panel */
.login-panel {
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
}

.login-form-container {
  width: 100%;
  max-width: 400px;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.form-header p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Modern Form */
.modern-form {
  width: 100%;
}

.form-group {
  margin-bottom: 25px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 20px;
  color: var(--text-light);
  font-size: 1.2rem;
  z-index: 1;
}

.input-with-icon .toggle-password {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 1;
  padding: 0;
}

.form-control-modern {
  width: 100%;
  padding: 18px 20px 18px 55px;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: white;
  color: var(--text-dark);
  transition: var(--transition);
  font-family: "Signika", sans-serif;
}

.form-control-modern:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-control-modern::placeholder {
  color: var(--text-light);
}

.error-message {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 8px;
  display: block;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.checkbox-modern {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.checkbox-modern input {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  margin-right: 10px;
  position: relative;
  transition: var(--transition);
}

.checkbox-modern input:checked + .checkmark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-modern input:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.8rem;
}

.forgot-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.forgot-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Login Button */
.btn-login {
  width: 100%;
  padding: 18px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login.loading .spinner {
  display: block;
}

.btn-login.loading span {
  opacity: 0;
}

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  position: absolute;
}

/* Sign Footer */
.sign-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Background Shapes */
.bg-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
}

.shape-1 {
  width: 500px;
  height: 500px;
  top: -250px;
  right: -100px;
  animation: float 20s ease-in-out infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -100px;
  animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
  width: 200px;
  height: 200px;
  bottom: 100px;
  right: 30%;
  animation: float 30s ease-in-out infinite;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .login-wrapper {grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .brand-panel {
    padding: 40px 30px;
  }

  .brand-title {
    font-size: 2rem;
  }

  .trial-container {
    position: relative;
    top: 0;
    right: 0;
    text-align: center;
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .login-wrapper {
    min-height: auto;
  }

  .brand-panel,
  .login-panel {
    padding: 40px 20px;
  }

  .brand-title {
    font-size: 1.8rem;
  }

  .form-header h2 {
    font-size: 1.8rem;
  }

  .btn-trial-modern {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .login-panel {
    background: var(--dark-bg);
  }

  .form-header h2 {
    color: white;
  }

  .form-header p {
    color: var(--text-light);
  }

  .form-control-modern {
    background: #2d2d3d;
    border-color: #3d3d4d;
    color: white;
  }

  .sign-footer {
    color: var(--text-light);
    border-top-color: #3d3d4d;
  }
}
