/* Auth Container */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.auth-wrapper {
  width: 100%;
  max-width: 1200px;
  height: auto;
  min-height: 600px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  background: white;
}

/* Auth Panels */
.auth-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  min-height: 600px;
}

.registration-panel {
  transform: translateX(0);
}

.login-panel {
  transform: translateX(100%);
}

/* When showing login */
.auth-wrapper.show-login .registration-panel {
  transform: translateX(-100%);
}

.auth-wrapper.show-login .login-panel {
  transform: translateX(0);
}

/* Blue Panel Styles */
.blue-panel {
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.blue-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1.5" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.panel-content {
  padding: 40px 30px;
  z-index: 2;
  position: relative;
  width: 100%;
  max-width: 500px;
}

.panel-content h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.panel-content p {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.6;
}

.panel-content .small {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.5;
}

.terms-section, .terms-text {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

.terms-section h5{
  text-align: left;
}

.terms-text {
  text-align: left;
}

.terms-text h6{
  color: red;
  font-family: "Poppins", sans-serif;
  
}

/* Form Panel Styles */
.form-panel {
  background: white;
  padding: 40px 30px;
  min-height: 400px;
}

.form-content {
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.form-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 2rem;
}

/* Form Input Styles */
.form-input {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
  width: 100%;
}

.form-input:focus {
  border-color: #4A90E2;
  box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
  background-color: white;
}

.form-input::placeholder {
  color: #6c757d;
  opacity: 0.8;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  border: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  transition: all 0.3s ease;
}

#login_register_director{
  background: #007bff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #357ABD 0%, #2968A3 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

/* Form Check Styles */
.form-check-input:checked {
  background-color: #4A90E2;
  border-color: #4A90E2;
}

.form-check-input:focus {
  border-color: #4A90E2;
  box-shadow: 0 0 0 0.25rem rgba(74, 144, 226, 0.25);
}

/* Responsive Design */

/* Extra Large screens (1200px and up) */
@media (min-width: 1200px) {
  .auth-wrapper {
    height: 700px;
    min-height: 700px;
  }
  
  .auth-panel {
    min-height: 700px;
  }
  
  .panel-content {
    padding: 50px 40px;
  }
  
  .form-panel {
    padding: 50px 40px;
  }
}

/* Large screens (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .auth-wrapper {
    height: 650px;
    min-height: 650px;
  }
  
  .auth-panel {
    min-height: 650px;
  }
  
  .panel-content {
    padding: 40px 30px;
  }
  
  .form-panel {
    padding: 40px 30px;
  }
  
  .panel-content h3 {
    font-size: 1.6rem;
  }
  
  .form-content h2 {
    font-size: 1.8rem;
  }
}

/* Medium screens (768px to 991px) - Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
  .auth-wrapper {
    height: auto;
    min-height: 800px;
  }
  
  .auth-panel {
    position: relative;
    transform: none !important;
    min-height: auto;
  }
  
  .auth-wrapper.show-login .registration-panel {
    display: none;
  }
  
  .auth-wrapper.show-login .login-panel {
    display: block;
  }
  
  .registration-panel,
  .login-panel {
    display: block;
  }
  
  .login-panel {
    display: none;
  }
  
  .blue-panel {
    min-height: 350px;
  }
  
  .form-panel {
    padding: 40px 30px;
    min-height: 450px;
  }
  
  .panel-content {
    padding: 30px 25px;
  }
  
  .panel-content h3 {
    font-size: 1.5rem;
  }
  
  .form-content h2 {
    font-size: 1.7rem;
  }
  
  .terms-section {
    margin-top: 2rem !important;
  }
}

/* Small screens (576px to 767px) - Mobile Landscape */
@media (min-width: 576px) and (max-width: 767.98px) {
  .auth-container {
    padding: 10px;
  }
  
  .auth-wrapper {
    border-radius: 15px;
    min-height: 700px;
    height: auto;
  }
  
  .auth-panel {
    position: relative;
    transform: none !important;
    min-height: auto;
  }
  
  .auth-wrapper.show-login .registration-panel {
    display: none;
  }
  
  .auth-wrapper.show-login .login-panel {
    display: block;
  }
  
  .registration-panel,
  .login-panel {
    display: block;
  }
  
  .login-panel {
    display: none;
  }
  
  .blue-panel {
    min-height: 300px;
  }
  
  .form-panel {
    padding: 30px 20px;
    min-height: 400px;
  }
  
  .panel-content {
    padding: 25px 20px;
  }
  
  .panel-content h3 {
    font-size: 1.4rem;
  }
  
  .panel-content p {
    font-size: 0.9rem;
  }
  
  .form-content h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
  
  .form-input {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
  
  .terms-section {
    margin-top: 1.5rem !important;
  }
  
  .terms-section .small {
    font-size: 0.8rem;
  }
}

/* Extra small screens (less than 576px) - Mobile Portrait */
@media (max-width: 575.98px) {
  .auth-container {
    padding: 5px;
  }
  
  .auth-wrapper {
    border-radius: 10px;
    min-height: 600px;
    height: auto;
  }
  
  .auth-panel {
    position: relative;
    transform: none !important;
    min-height: auto;
  }
  
  .auth-wrapper.show-login .registration-panel {
    display: none;
  }
  
  .auth-wrapper.show-login .login-panel {
    display: block;
  }
  
  .registration-panel,
  .login-panel {
    display: block;
  }
  
  .login-panel {
    display: none;
  }
  
  .blue-panel {
    min-height: 250px;
  }
  
  .form-panel {
    padding: 20px 15px;
    min-height: 350px;
  }
  
  .panel-content {
    padding: 20px 15px;
  }
  
  .panel-content h3 {
    font-size: 1.2rem;
  }
  
  .panel-content p {
    font-size: 0.85rem;
  }
  
  .panel-content .small {
    font-size: 0.75rem;
  }
  
  .form-content h2 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
  }
  
  .form-input {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  
  .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
  
  .terms-section {
    margin-top: 1rem !important;
    max-height: 200px;
  }
  
  .terms-section h5 {
    font-size: 1rem;
  }
  
  .terms-section .small {
    font-size: 0.7rem;
  }
  
  /* Stack form inputs on very small screens */
  .registration-form .row .col-sm-6 {
    margin-bottom: 0.75rem;
  }
  
  .login-form .row .col-sm-6 {
    margin-bottom: 0.75rem;
  }
}

/* Ultra small screens (less than 400px) */
@media (max-width: 399.98px) {
  .auth-container {
    padding: 3px;
  }
  
  .auth-wrapper {
    border-radius: 8px;
    min-height: 550px;
  }
  
  .blue-panel {
    min-height: 200px;
  }
  
  .form-panel {
    padding: 15px 10px;
    min-height: 300px;
  }
  
  .panel-content {
    padding: 15px 10px;
  }
  
  .panel-content h3 {
    font-size: 1.1rem;
  }
  
  .panel-content p {
    font-size: 0.8rem;
  }
  
  .form-content h2 {
    font-size: 1.3rem;
  }
  
  .form-input {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  
  .btn {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
  
  .terms-section {
    max-height: 150px;
  }
  
  .terms-section .small {
    font-size: 0.65rem;
  }
}

/* Animation Enhancements */
.form-input,
.btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-panel {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading Animation */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.btn:active {
  animation: pulse 0.3s ease-in-out;
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-input:focus {
  outline: none;
}

.btn:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(74, 144, 226, 0.5);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #4A90E2;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #357ABD;
}

/* Landscape orientation adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .auth-container {
    padding: 5px;
  }
  
  .auth-wrapper {
    min-height: 450px;
  }
  
  .blue-panel {
    min-height: 200px;
  }
  
  .panel-content {
    padding: 15px;
  }
  
  .form-panel {
    padding: 15px;
  }
  
  .terms-section {
    max-height: 120px;
    margin-top: 1rem !important;
  }
  
  .panel-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .panel-content p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  
  .form-content h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
}


#log-in{
  width: 30%;
}