/* ========== PROFESSIONAL SPLIT SCREEN LOGIN DESIGN ========== */

/* Main Wrapper - Split Screen Layout */
.pro-login-wrapper{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  overflow: hidden;
  background: #f8fafc;
}

/* Left Side - Hero Section */
.pro-login-hero{
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

.hero-background{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-gradient{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    #667eea 0%, 
    #764ba2 25%,
    #4facfe 50%,
    #00f2fe 75%,
    #667eea 100%);
  background-size: 400% 400%;
  animation: heroGradientMove 20s ease infinite;
}

@keyframes heroGradientMove{
  0%, 100%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
}

.hero-pattern{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 2px 2px, rgba(255,255,255,0.15) 1px, transparent 0);
  background-size: 40px 40px;
  opacity: 0.4;
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove{
  0%{ transform: translate(0, 0); }
  100%{ transform: translate(40px, 40px); }
}

.hero-shapes{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-shape{
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.shape-1{
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
  top: -200px;
  left: -200px;
  animation: shapeFloat1 15s ease-in-out infinite;
}

.shape-2{
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  bottom: -150px;
  right: -150px;
  animation: shapeFloat2 18s ease-in-out infinite;
}

.shape-3{
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: shapeFloat3 20s ease-in-out infinite;
}

@keyframes shapeFloat1{
  0%, 100%{ transform: translate(0, 0) scale(1); }
  50%{ transform: translate(100px, 100px) scale(1.2); }
}

@keyframes shapeFloat2{
  0%, 100%{ transform: translate(0, 0) scale(1); }
  50%{ transform: translate(-80px, -80px) scale(1.15); }
}

@keyframes shapeFloat3{
  0%, 100%{ transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  50%{ transform: translate(-50%, -50%) scale(1.1) rotate(180deg); }
}

.hero-glow{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse{
  0%, 100%{ opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50%{ opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

/* Hero Content */
.hero-content{
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 60px 40px;
  max-width: 600px;
  animation: heroContentFadeIn 1s ease-out;
}

@keyframes heroContentFadeIn{
  0%{ opacity: 0; transform: translateY(30px); }
  100%{ opacity: 1; transform: translateY(0); }
}

.hero-logo{
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.3),
    0 0 0 4px rgba(255,255,255,0.2) inset;
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
}

.hero-logo:hover .hero-logo-img{
  transform: scale(1.05) rotate(5deg);
}

.hero-logo-ring{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  animation: ringRotate 10s linear infinite;
}

@keyframes ringRotate{
  from{ transform: translate(-50%, -50%) rotate(0deg); }
  to{ transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-title{
  margin: 0 0 20px 0;
  font-size: 0;
  line-height: 1.2;
}

.hero-title-main{
  display: block;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 8px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: titleSlideIn 0.8s ease-out 0.2s both;
}

.hero-title-sub{
  display: block;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  opacity: 0.95;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: titleSlideIn 0.8s ease-out 0.4s both;
}

@keyframes titleSlideIn{
  0%{ opacity: 0; transform: translateX(-30px); }
  100%{ opacity: 1; transform: translateX(0); }
}

.hero-description{
  font-size: 18px;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 50px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInUp{
  0%{ opacity: 0; transform: translateY(20px); }
  100%{ opacity: 1; transform: translateY(0); }
}

.hero-features{
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.hero-feature{
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  animation: featureFadeIn 0.8s ease-out both;
}

.hero-feature:nth-child(1){ animation-delay: 0.8s; }
.hero-feature:nth-child(2){ animation-delay: 1s; }
.hero-feature:nth-child(3){ animation-delay: 1.2s; }

@keyframes featureFadeIn{
  0%{ opacity: 0; transform: translateX(-20px); }
  100%{ opacity: 1; transform: translateX(0); }
}

.hero-feature:hover{
  background: rgba(255,255,255,0.25);
  transform: translateX(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.hero-feature-icon{
  font-size: 32px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  border-radius: 14px;
  flex-shrink: 0;
}

.hero-feature-text{
  flex: 1;
}

.hero-feature-title{
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-feature-desc{
  font-size: 14px;
  opacity: 0.9;
  font-weight: 500;
}

/* Right Side - Login Form */
.pro-login-form-side{
  flex: 0 0 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  position: relative;
  box-shadow: -4px 0 40px rgba(0,0,0,0.1);
}

.pro-login-form-container{
  width: 100%;
  max-width: 420px;
  padding: 60px 50px;
  animation: formSlideIn 0.8s ease-out;
}

@keyframes formSlideIn{
  0%{ opacity: 0; transform: translateX(30px); }
  100%{ opacity: 1; transform: translateX(0); }
}

.pro-form-header{
  text-align: center;
  margin-bottom: 40px;
}

.pro-form-title{
  font-size: 32px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pro-form-subtitle{
  font-size: 15px;
  color: #64748b;
  font-weight: 500;
  margin: 0;
}

/* Form Styles */
.pro-login-form{
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pro-form-group{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pro-form-label{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.3px;
}

.pro-label-icon{
  font-size: 18px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pro-input-wrapper{
  position: relative;
}

.pro-form-input{
  width: 100%;
  padding: 16px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  color: #1e293b;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pro-form-input:focus{
  outline: none;
  border-color: #667eea;
  box-shadow: 
    0 0 0 4px rgba(102,126,234,0.1),
    0 4px 16px rgba(102,126,234,0.15);
  transform: translateY(-2px);
}

.pro-form-input::placeholder{
  color: #94a3b8;
  opacity: 0.6;
}

.pro-input-focus-line{
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.pro-form-input:focus ~ .pro-input-focus-line{
  width: 100%;
}

/* Submit Button */
.pro-submit-button{
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(102,126,234,0.3);
  margin-top: 8px;
}

.pro-submit-button:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102,126,234,0.4);
}

.pro-submit-button:active{
  transform: translateY(0);
}

.pro-btn-text{
  position: relative;
  z-index: 2;
  letter-spacing: 0.5px;
}

.pro-btn-icon{
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.pro-submit-button:hover .pro-btn-icon{
  transform: translateX(4px);
}

.pro-btn-ripple{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
}

.pro-submit-button:active .pro-btn-ripple{
  width: 300px;
  height: 300px;
  opacity: 0;
}

/* Face ID / Touch ID Button */
.pro-faceid-button{
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  border: 2px solid #667eea;
  background: rgba(102, 126, 234, 0.05);
  color: #667eea;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pro-faceid-button:hover{
  background: rgba(102, 126, 234, 0.1);
  border-color: #764ba2;
  color: #764ba2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.pro-faceid-button:active{
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.15);
}

.pro-faceid-icon{
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pro-faceid-text{
  letter-spacing: 0.3px;
}

/* Footer Note */
.pro-form-footer{
  margin-top: 32px;
  padding: 16px 20px;
  background: #f1f5f9;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pro-footer-icon{
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pro-footer-text{
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px){
  .pro-login-wrapper{
    flex-direction: column;
  }
  
  .pro-login-hero{
    flex: 0 0 40vh;
    min-height: 40vh;
  }
  
  .pro-login-form-side{
    flex: 1;
    min-height: 60vh;
  }
  
  .hero-title-main{
    font-size: 36px;
  }
  
  .hero-title-sub{
    font-size: 28px;
  }
  
  .hero-features{
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .hero-feature{
    flex: 1;
    min-width: 200px;
    padding: 16px;
  }
}

@media (max-width: 768px){
  .pro-login-wrapper{
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .pro-login-hero{
    flex: 0 0 35vh;
    min-height: 35vh;
    max-height: 35vh;
  }
  
  .pro-login-form-side{
    flex: 1;
    min-height: auto;
    box-shadow: 0 -4px 40px rgba(0,0,0,0.1);
  }
  
  .pro-login-form-container{
    padding: 40px 30px;
    max-width: 100%;
  }
  
  .hero-content{
    padding: 30px 20px;
  }
  
  .hero-logo{
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
  }
  
  .hero-logo-ring{
    width: 120px;
    height: 120px;
  }
  
  .hero-title-main{
    font-size: 28px;
  }
  
  .hero-title-sub{
    font-size: 20px;
  }
  
  .hero-description{
    font-size: 14px;
    margin-bottom: 30px;
  }
  
  .hero-features{
    display: none; /* Hide features on mobile to save space */
  }
  
  .pro-form-title{
    font-size: 26px;
  }
  
  .pro-form-subtitle{
    font-size: 14px;
  }
  
  .pro-login-form{
    gap: 24px;
  }
  
  .pro-form-input{
    padding: 14px 16px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .pro-submit-button{
    padding: 14px 24px;
    font-size: 15px;
  }
}

/* Mobile Phones - Small Screens */
@media (max-width: 480px){
  .pro-login-wrapper{
    height: 100vh;
    height: 100dvh;
  }
  
  .pro-login-hero{
    flex: 0 0 30vh;
    min-height: 30vh;
    max-height: 30vh;
  }
  
  .pro-login-form-side{
    flex: 1;
    min-height: 70vh;
  }
  
  .pro-login-form-container{
    padding: 30px 20px;
    padding-bottom: 40px;
  }
  
  .hero-content{
    padding: 20px 15px;
  }
  
  .hero-logo{
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }
  
  .hero-logo-ring{
    width: 100px;
    height: 100px;
  }
  
  .hero-title-main{
    font-size: 24px;
    margin-bottom: 4px;
  }
  
  .hero-title-sub{
    font-size: 18px;
  }
  
  .hero-description{
    font-size: 13px;
    margin-bottom: 20px;
    padding: 0 10px;
  }
  
  .pro-form-header{
    margin-bottom: 30px;
  }
  
  .pro-form-title{
    font-size: 24px;
    margin-bottom: 8px;
  }
  
  .pro-form-subtitle{
    font-size: 13px;
  }
  
  .pro-login-form{
    gap: 20px;
  }
  
  .pro-form-group{
    gap: 8px;
  }
  
  .pro-form-label{
    font-size: 13px;
  }
  
  .pro-label-icon{
    font-size: 16px;
    width: 20px;
    height: 20px;
  }
  
  .pro-form-input{
    padding: 14px 16px;
    font-size: 16px; /* Prevent zoom on iOS */
    border-radius: 10px;
  }
  
  .pro-submit-button{
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 10px;
    margin-top: 4px;
  }
  
  .pro-form-footer{
    margin-top: 24px;
    padding: 12px 16px;
    border-radius: 10px;
  }
  
  .pro-footer-text{
    font-size: 12px;
  }
  
  .pro-footer-icon{
    font-size: 16px;
  }
  
  /* Adjust hero shapes for mobile */
  .shape-1,
  .shape-2,
  .shape-3{
    display: none; /* Hide decorative shapes on small screens */
  }
  
  .hero-glow{
    width: 400px;
    height: 400px;
  }
}

/* Very Small Mobile Phones */
@media (max-width: 360px){
  .pro-login-form-container{
    padding: 25px 16px;
    padding-bottom: 35px;
  }
  
  .hero-title-main{
    font-size: 22px;
  }
  
  .hero-title-sub{
    font-size: 16px;
  }
  
  .pro-form-title{
    font-size: 22px;
  }
  
  .pro-form-input{
    padding: 12px 14px;
  }
  
  .pro-submit-button{
    padding: 12px 18px;
  }
}

/* RTL Support for Mobile */
[dir="rtl"] .pro-login-form-side{
  box-shadow: 4px 0 40px rgba(0,0,0,0.1);
}

@media (max-width: 768px){
  [dir="rtl"] .pro-login-form-side{
    box-shadow: 0 -4px 40px rgba(0,0,0,0.1);
  }
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px){
  .pro-form-input,
  .pro-submit-button{
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
  }
  
  .pro-submit-button{
    min-height: 48px; /* Minimum touch target size */
  }
  
  .pro-form-input:focus{
    transform: none; /* Remove transform on mobile to prevent layout shifts */
  }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px){
  .pro-login-hero{
    flex: 0 0 25vh;
    min-height: 25vh;
    max-height: 25vh;
  }
  
  .hero-content{
    padding: 15px 20px;
  }
  
  .hero-logo{
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }
  
  .hero-title-main{
    font-size: 20px;
    margin-bottom: 2px;
  }
  
  .hero-title-sub{
    font-size: 16px;
  }
  
  .hero-description{
    display: none;
  }
  
  .pro-login-form-container{
    padding: 25px 30px;
  }
}

