/* ================================================
   EventPro — Sign In Page
   Mobile-first. Scales to tablet and desktop.
   Pulls shared input styles from form-input.css
   Base font size = 16px
   ================================================ */

:root {
  --color-primary:        #6F00FF;
  --color-primary-hover:  #5900CC;
  --color-text-primary:   #000000;
  --color-text-dark:      #1F2937;
  --color-text-muted:     #6B7280;
  --color-white:          #FFFFFF;
  --color-border:         #E5E7EB;
  --color-social-hover:   #F5F0FF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--color-white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.5rem;          
}

.page-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
}

.form-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;                 
}

.title-group {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.7rem;                    
}
.new-user-text{
  font-weight: 500;
}
.form-title {
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--color-text-dark);
  font-family: 'Poppins', sans-serif;
}

.new-user-text {
  font-size: 0.8rem;          
  color: var(--color-text-muted);
  font-family: 'Poppins', sans-serif;
}

.create-account-link {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
}

.create-account-link:hover {
  text-decoration: underline;
}

.fields-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.toggle-password {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
}

.toggle-password:focus-visible {
  outline: 1px solid var(--color-primary);
  outline-offset: 1px;
  border-radius: 5px;
}

.forgot-password {
  font-size: 1rem;           
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  color: var(--color-text-primary);
  text-decoration: none;
  display: block;
  margin-bottom: 1.2rem;
}

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

.btn-login {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 3rem;             
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 10px;           
  font-size: 1rem;           
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  padding: 0.6rem 0.6rem;    
  transition: background-color 0.2s ease-out,
              opacity 0.2s ease-out;
              margin-bottom: 1.2rem;
}

.btn-login:hover {
  background-color: var(--color-text-muted);
}

.btn-login:focus-visible {
  outline: 2px solid var(--color-text-muted);
  outline-offset: 3px;
}

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.social-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;            
  margin-bottom: 2rem;
}

.social-btn {
  width: 100%;
  height: 3rem;            
  display: flex;
  align-items: center;
  justify-content: start;
  padding-left: 1rem; 
  gap: 0.7rem;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;            
  font-size: 0.8rem;           
  font-weight: 400;
  font-family: 'Poppins', sans-serif;
  color: var(--color-text-dark);
  cursor: pointer;
  transition: border-color 0.3s ease-out,
              background-color 0.3s ease-out;
}

.social-btn:hover {
  border-color: var(--color-primary);
  background-color: var(--color-social-hover);
}

.social-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.social-icon {
  width: 1.25rem;              
  height: 1.25rem;
  flex-shrink: 0;
}

.privacy-text {
  font-size: 0.9rem;              
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}

.privacy-link {
  color: var(--color-text-dark);
  font-weight: 400;
  text-decoration: underline;
}

.privacy-link:hover {
  color: var(--color-primary);
}

/*  Illustration — hidden on mobile */
.illustration-card {
  display: none;
}

/* Tablet (768px — 1199px) */
@media (min-width: 48rem) {
  body {
    padding: 2rem 2rem;
  }

  .page-wrapper {
    flex-direction: column;    
    align-items: center;
    gap: 2rem;
  }

  .illustration-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(33rem, 100%); 
    height: 20rem;                
    border-radius: 15px;
    overflow: hidden;
  }

  .illustration-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .form-card {
    width: min(30rem, 100%);  
    flex-shrink: 0;
  }
}

@media (min-width: 75rem) {
  body {
    padding: 4rem;
  }

  .page-wrapper {
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }

  .form-card {
    order: 1;                      
    width: min(30rem, 100%);
    padding: 3rem;
  }

  .illustration-card {
    order: 2;                      
    width: min(42rem, 100%);
    height: auto;
  }
}