* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary: #4a6de5;
  --primary-dark: #3a5bd0;
  --secondary: #ff7e5f;
  --light: #f8f9ff;
  --dark: #2c3e50;
  --success: #28a745;
  --error: #e74c3c;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

body {
  background: var(--bg-gradient);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  display: flex;
  max-width: 900px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  background: white;
}

.form-container {
  flex: 1;
  padding: 50px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.graphic-container {
  flex: 0.7;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.graphic-container::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  top: -100px;
  right: -100px;
}

.graphic-container::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  bottom: -80px;
  left: -80px;
}

.graphic-content {
  color: white;
  text-align: center;
  z-index: 1;
  max-width: 350px;
}

.graphic-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.graphic-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 30px;
}

.features {
  text-align: left;
  margin-top: 30px;
}

.feature {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.feature i {
  margin-right: 10px;
  background: rgba(255, 255, 255, 0.2);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.logo-icon {
  background: var(--primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-right: 15px;
  box-shadow: 0 5px 15px rgba(74, 109, 229, 0.3);
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
}

.logo-text span {
  color: var(--primary);
}

h1 {
  color: var(--dark);
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.subtitle {
  color: var(--gray);
  margin-bottom: 35px;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 1.1rem;
}

input {
  width: 100%;
  padding: 15px 15px 15px 50px;
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 109, 229, 0.2);
  outline: none;
}

button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(74, 109, 229, 0.4);
  margin-top: 10px;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(74, 109, 229, 0.5);
}

button:active {
  transform: translateY(0);
}

.signup-link {
  text-align: center;
  margin-top: 25px;
  color: var(--gray);
  font-size: 1rem;
}

.signup-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.signup-link a:hover {
  text-decoration: underline;
}

.message {
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 25px;
  font-weight: 500;
  display: flex;
  align-items: center;
  animation: fadeIn 0.5s ease;
}

.success-message {
  background: rgba(40, 167, 69, 0.15);
  color: var(--success);
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.error-message {
  background: rgba(231, 76, 60, 0.15);
  color: var(--error);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.message i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  cursor: pointer;
}

.forgot-password {
  text-align: right;
  margin-top: 5px;
  font-size: 0.9rem;
}

.forgot-password a {
  color: var(--primary);
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.social-login {
  margin-top: 30px;
  text-align: center;
}

.social-title {
  color: var(--gray);
  margin-bottom: 15px;
  position: relative;
  font-size: 0.95rem;
}

.social-title::before,
.social-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--light-gray);
}

.social-title::before {
  left: 0;
}

.social-title::after {
  right: 0;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--light-gray);
  background: white;
  color: var(--gray);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn.google:hover {
  color: #DB4437;
  border-color: #DB4437;
}

.social-btn.facebook:hover {
  color: #4267B2;
  border-color: #4267B2;
}

.social-btn.twitter:hover {
  color: #1DA1F2;
  border-color: #1DA1F2;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .graphic-container {
    padding: 30px 20px;
  }

  .form-container {
    padding: 40px 30px;
  }

  .graphic-content {
    max-width: 100%;
  }

  .social-title::before,
  .social-title::after {
    width: 25%;
  }
}