/**
 * public/assets/css/auth_premium.css
 * Premium Split-Screen Login Design with Video & Slideshow
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
          --primary-orange: oklch(64.6% 0.222 41.116);
          --primary-orange-light: oklch(75% 0.180 41.116);
          --primary-orange-dark: oklch(54% 0.250 41.116);
          --navy-dark: #0F172A;
          --slate-light: #F1F5F9;
          --slate-dark: #1E293B;
          --text-dark: #111827;
}

body,
html {
          height: 100%;
          margin: 0;
          font-family: 'Inter', sans-serif;
          background-color: #F8FAFC;
          color: var(--slate-dark);
}

.login-wrapper {
          display: flex;
          min-height: 100vh;
          width: 100%;
}

/* Left Section: Branding & Slideshow */
.login-branding {
          flex: 1.5;
          min-width: 560px;
          background-color: var(--navy-dark);
          color: white;
          padding: 60px 40px;
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          position: relative;
          overflow: hidden;
}

.branding-video {
          position: absolute;
          inset: 0;
          width: 100%;
          height: 100%;
          object-fit: cover;
          z-index: 1;
}

.branding-overlay {
          position: absolute;
          inset: 0;
          background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.70) 45%, rgba(15, 23, 42, 0.78) 100%);
          z-index: 2;
}

.slideshow-container {
          position: absolute;
          top: 40%;
          left: 0;
          right: 0;
          transform: translateY(-20%);
          z-index: 10;
          padding: 0 60px;
          width: 100%;
          max-width: 620px;
          margin: 0 auto;
}

.slide {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          opacity: 0;
          visibility: hidden;
          transform: translateY(10px);
          transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide.active {
          opacity: 1;
          visibility: visible;
          transform: translateY(0);
          z-index: 3;
}

.slide.active .slide-content {
          animation: slideInLeft 0.8s ease-out forwards;
}

.slide-content {
          opacity: 0;
}

.slide-title {
          font-size: clamp(2.5rem, 4vw, 4.5rem);
          font-weight: 800;
          line-height: 1.05;
          margin: 0 0 18px 0;
          color: white;
}

.slide-description {
          font-size: clamp(1rem, 1.1vw, 1.15rem);
          opacity: 0.88;
          line-height: 1.7;
          margin: 0;
          max-width: 520px;
          color: rgba(255, 255, 255, 0.95);
}

.slideshow-controls {
          position: absolute;
          bottom: 60px;
          left: 60px;
          display: flex;
          gap: 12px;
          z-index: 10;
}

.dot {
          width: 12px;
          height: 12px;
          border-radius: 50%;
          background: rgba(255, 255, 255, 0.35);
          cursor: pointer;
          transition: transform 0.3s ease, background 0.3s ease;
          border: 2px solid transparent;
}

.dot:hover {
          background: rgba(255, 255, 255, 0.72);
          transform: scale(1.2);
}

.dot.active {
          background: var(--primary-orange);
          border-color: var(--primary-orange-light);
          transform: scale(1.35);
          box-shadow: 0 0 18px rgba(255, 136, 68, 0.45);
}

@keyframes slideInLeft {
          from {
                    opacity: 0;
                    transform: translateX(-30px);
          }

          to {
                    opacity: 1;
                    transform: translateX(0);
          }
}

.branding-header {
          display: flex;
          justify-content: space-between;
          align-items: center;
          z-index: 10;
          position: relative;
}

.branding-logo {
          display: flex;
          align-items: center;
          gap: 12px;
}

.branding-logo-image {
          display: block;
          max-width: 160px;
          height: auto;
          background: rgba(255, 255, 255, 0.1);
          backdrop-filter: blur(20px);
          /* border: 1px solid rgba(255, 255, 255, 0.2); */
          border-radius: 20px;
          box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
          padding: 10px;
}

.branding-status {
          font-size: 12px;
          text-transform: uppercase;
          letter-spacing: 1px;
          opacity: 0.8;
}

.login-portal {
          flex: 1;
          display: flex;
          align-items: flex-start;
          justify-content: center;
          padding: 32px 40px;
          overflow-y: auto;
          background: linear-gradient(180deg, var(--primary-orange-light), var(--primary-orange));
}

.login-portal>.login-card {
          margin: auto 0;
}

.login-card {
          background: rgba(255, 255, 255, 0.98);
          width: 100%;
          max-width: 460px;
          padding: 44px;
          border-radius: 32px;
          box-shadow: 0 35px 90px rgba(17, 24, 39, 0.14);
          border: 1px solid rgba(255, 255, 255, 0.85);
}

.portal-label {
          font-size: 14px;
          text-transform: uppercase;
          font-weight: 700;
          letter-spacing: 2px;
          color: var(--primary-orange);
          margin: 0;
}

.login-card-header {
          display: flex;
          flex-direction: column;
          align-items: center;
          gap: 12px;
          margin-bottom: 20px;
          position: relative;
}

.login-card-logo {
          display: block;
          height: 100px;
          width: auto;
          object-fit: contain;
}

.portal-title {
          font-size: 32px;
          font-weight: 800;
          margin-bottom: 40px;
          letter-spacing: -1px;
          background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
          -webkit-background-clip: text;
          -webkit-text-fill-color: transparent;
          background-clip: text;
}

.form-field {
          margin-bottom: 24px;
}

.form-field label {
          display: block;
          font-size: 12px;
          font-weight: 700;
          text-transform: uppercase;
          margin-bottom: 8px;
          color: var(--slate-dark);
          opacity: 0.75;
}

.input-wrapper {
          position: relative;
          display: flex;
          align-items: center;
}

.input-icon {
          position: absolute;
          left: 20px;
          color: var(--slate-dark);
          opacity: 0.5;
          width: 18px;
          z-index: 2;
}

.form-input {
          width: 100%;
          padding: 18px 20px 18px 54px;
          background: var(--slate-light);
          border: 2px solid transparent;
          border-radius: 16px;
          font-size: 16px;
          font-weight: 600;
          transition: all 0.2s ease;
}

.form-input:focus {
          outline: none;
          background: white;
          border-color: var(--primary-orange);
          box-shadow: 0 0 0 3px rgba(255, 136, 68, 0.12);
}

.password-toggle {
          position: absolute;
          right: 16px;
          background: none;
          border: none;
          cursor: pointer;
          color: #64748b;
          display: flex;
          align-items: center;
          padding: 0;
          height: 100%;
}

.password-input {
          padding-right: 54px;
}

.form-options {
          display: flex;
          justify-content: space-between;
          align-items: center;
          margin-top: 10px;
          margin-bottom: 30px;
}

.remember-me {
          display: flex;
          align-items: center;
          gap: 8px;
          font-size: 14px;
          font-weight: 600;
}

.recovery-link {
          font-size: 14px;
          font-weight: 700;
          color: var(--primary-orange);
          text-decoration: none;
          transition: color 0.2s ease;
}

.recovery-link:hover {
          color: var(--primary-orange-dark);
}

.submit-btn {
          width: 100%;
          padding: 20px;
          background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
          color: white;
          border: none;
          border-radius: 16px;
          font-size: 14px;
          font-weight: 700;
          text-transform: uppercase;
          letter-spacing: 1px;
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 12px;
          cursor: pointer;
          transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
          transform: translateY(-2px);
          box-shadow: 0 15px 30px rgba(255, 136, 68, 0.3);
}

.submit-btn:active {
          transform: translateY(0);
}

.portal-footer {
          margin-top: 40px;
          display: flex;
          justify-content: space-between;
          font-size: 11px;
          font-weight: 700;
          opacity: 0.5;
          position: relative;
          z-index: 10;
}

.footer-nav {
          display: flex;
          gap: 15px;
}

.login-card-actions {
          display: flex;
          flex-direction: row;
          gap: 11px;
          margin-top: 24px;
          align-items: center;
          justify-content: center;
}

.action-btn {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          box-sizing: border-box;
          padding: 14px 18px;
          border-radius: 16px;
          border: 1px solid transparent;
          font-size: 14px;
          font-weight: 700;
          text-decoration: none;
          color: #111827;
          background: rgba(241, 245, 249, 0.95);
          transition: all 0.2s ease;
}

.action-btn:hover,
.action-btn:focus {
          transform: translateY(-1px);
          box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.playstore-link,
.support-link {
          flex: 1;
          display: flex;
          justify-content: center;
          align-items: center;
          transition: transform 0.2s ease, filter 0.2s ease;
}

.playstore-link:hover,
.support-link:hover {
          transform: translateY(-2px);
          filter: drop-shadow(0 10px 15px rgba(15, 23, 42, 0.15));
}

.playstore-link img,
.playstore-badge,
.support-link img,
.support-badge {
          max-width: 100%;
          height: 100%;
          object-fit: contain;
}

.language-selector {
          position: relative;
          display: flex;
          justify-content: center;
          align-items: flex-end;
          align-self: end;
}

.action-language {
          color: #ffffff;
          background: #0f172a;
          padding: 0 18px;
          min-height: 48px;
          border-radius: 20px;
          font-size: 15px;
          letter-spacing: 0.02em;
          box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
          width: 100%;
          max-width: 260px;
}

.action-whatsapp {
          color: #0f5132;
          background: #dcfce7;
}

.action-demo {
          color: #ffffff;
          background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
}

.action-language {
          color: #ffffff;
          background: #0f172a;
          padding: 0 18px;
          min-height: 48px;
          border-radius: 20px;
          font-size: 15px;
          letter-spacing: 0.02em;
          box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.language-selector {
          position: relative;
}

.language-dropdown {
          position: absolute;
          top: calc(100% + 10px);
          right: 0;
          width: 100%;
          border-radius: 18px;
          background: white;
          border: 1px solid rgba(15, 23, 42, 0.08);
          box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
          overflow: hidden;
          display: none;
          z-index: 20;
}

.language-dropdown.open {
          display: block;
}

.language-option {
          width: 100%;
          padding: 14px 18px;
          text-align: left;
          border: none;
          background: transparent;
          font-size: 14px;
          font-weight: 700;
          color: #111827;
          cursor: pointer;
}

.language-option:hover {
          background: rgba(241, 245, 249, 0.95);
}

.language-selector-flags {
          position: absolute;
          top: 0;
          right: 0;
          display: flex;
          gap: 8px;
          z-index: 100;
}

.flag-btn {
          background: none;
          border: 2px solid rgba(255, 136, 68, 0.3);
          border-radius: 12px;
          padding: 6px 10px;
          cursor: pointer;
          display: flex;
          align-items: center;
          justify-content: center;
          transition: all 0.2s ease;
          font-size: 15px;
}

.flag-btn img {
          width: 16px;
          height: auto;
}

.flag-btn:hover {
          border-color: var(--primary-orange);
          background: rgba(255, 136, 68, 0.1);
          transform: scale(1.1);
}

.flag-btn:focus {
          outline: none;
          border-color: var(--primary-orange);
          background: rgba(255, 136, 68, 0.15);
}

.action-whatsapp-large {
          position: relative;
          display: inline-flex;
          align-items: center;
          justify-content: center;
          box-sizing: border-box;
          width: 100%;
          padding: 20px 18px;
          border-radius: 16px;
          border: 1px solid transparent;
          text-decoration: none;
          color: #0f5132;
          background: #dcfce7;
          font-size: 16px;
          font-weight: 700;
          transition: all 0.2s ease;
}

.action-whatsapp-large:hover,
.action-whatsapp-large:focus {
          transform: scale(1.05);
}

@media (max-height: 850px) {
          .login-portal {
                    padding: 16px 20px;
          }

          .login-card {
                    padding: 24px 44px;
          }

          .login-card-logo {
                    height: 70px;
          }

          .login-card-header {
                    margin-bottom: 12px;
          }

          .portal-title {
                    font-size: 26px;
                    margin-bottom: 24px;
          }

          .form-field {
                    margin-bottom: 16px;
          }

          .form-input {
                    padding: 14px 20px 14px 50px;
          }

          .form-options {
                    margin-bottom: 20px;
          }

          .submit-btn {
                    padding: 16px;
          }

          .login-card-actions {
                    margin-top: 16px;
          }

          .portal-footer {
                    margin-top: 24px;
          }
}

@media (max-width: 992px) {
          .login-branding {
                    display: none;
          }

          .login-wrapper {
                    flex-direction: column;
                    align-items: center;
                    justify-content: flex-start;
                    padding: 0;
                    min-height: 100vh;
                    overflow-y: auto;
          }

          .login-portal {
                    padding: 24px 16px;
                    width: 100%;
                    max-width: 560px;
                    align-items: flex-start;
                    min-height: 100vh;
                    box-sizing: border-box;
          }

          .login-portal>.login-card {
                    margin: auto 0;
          }

          .login-card {
                    padding: 28px;
                    max-width: 100%;
                    width: 100%;
                    margin: 0 auto;
          }

          .login-card-header {
                    margin-bottom: 12px;
          }

          .portal-title {
                    font-size: 1.6rem;
                    margin-bottom: 18px;
          }

          .login-card-actions {
                    flex-direction: row;
                    align-items: center;
          }

          .playstore-link,
          .support-link {
                    flex: 1;
          }

          .playstore-link img,
          .playstore-badge,
          .support-link img,
          .support-badge {
                    max-height: 50px;
          }

          .action-whatsapp-large {
                    width: 100%;
          }
}

@media (max-width: 600px) {
          .login-card {
                    padding: 20px;
          }

          .login-card-logo {
                    height: 60px;
          }

          .portal-title {
                    font-size: 1.4rem;
                    margin-bottom: 14px;
          }

          .form-field {
                    margin-bottom: 12px;
          }

          .form-options {
                    margin-bottom: 16px;
          }

          .login-card-actions {
                    gap: 10px;
                    flex-direction: row;
                    margin-top: 16px;
                    align-items: center;
          }

          .playstore-link,
          .support-link {
                    flex: 1;
          }

          .playstore-link img,
          .playstore-badge,
          .support-link img,
          .support-badge {
                    max-width: 100%;
                    height: auto;
                    max-height: 44px;
                    object-fit: contain;
          }
}