/* Shared CSS for login, trial and forget-password pages */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    background: white !important;
    font-size: 1rem !important;
}

/* Left side - Form */
.form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.form-header {
    padding: 1.5rem 2rem;
}

.form-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #004aad;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
}

.logo-text {
    font-weight: bold;
    font-size: 1.25rem;
    color: #0f172a;
}

.header-login-link {
    font-size: 0.875rem;
    color: #64748b;
}

.header-login-link a {
    color: #004aad;
    font-weight: 500;
    text-decoration: none;
}

.header-login-link a:hover {
    text-decoration: underline;
}

.form-content-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.form-content {
    width: 100%;
    max-width: 28rem;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem !important;
    margin-top: 0 !important;
}

.form-group label {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #334155 !important;
    margin-bottom: 0.5rem !important;
    padding-bottom: 0 !important;
    text-align: left !important;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #94a3b8;
    z-index: 1;
}

input[type="password"], 
input[type="email"] {
    width: 100% !important;
    height: 3rem !important;
    padding: 0.75rem 1rem 0.75rem 2.75rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    background: white !important;
    transition: all 0.2s;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    display: block !important;
    line-height: normal !important;
    color: #0f172a !important;
}

input[type="text"]:focus, 
input[type="password"]:focus, 
input[type="email"]:focus {
    outline: none;
    border-color: #004aad;
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.1);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    cursor: pointer;
}

.form-check-label {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    cursor: pointer;
}

.forgot-password-link {
    color: #004aad;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.875rem;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.footer-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.footer-link a {
    color: #64748b;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.footer-link a:hover {
    color: #004aad;
}

/* Error messages */
.ps-login-error {
    margin-bottom: 1rem;
}

.ps-alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.ps-alert.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.ps-alert.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* Right side - Branded panel */
.branded-panel {
    display: none;
    width: 45%;
    height: 100vh;
    background: 
        url('data:image/svg+xml,<svg width="400" height="400" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg"><g opacity="0.3"><line x1="0" y1="0" x2="0" y2="400" stroke="%23ffffff" stroke-opacity="0.2" stroke-width="0.5"/><line x1="50" y1="0" x2="50" y2="400" stroke="%23ffffff" stroke-opacity="0.2" stroke-width="0.5"/><line x1="100" y1="0" x2="100" y2="400" stroke="%23ffffff" stroke-opacity="0.2" stroke-width="0.5"/><line x1="150" y1="0" x2="150" y2="400" stroke="%23ffffff" stroke-opacity="0.2" stroke-width="0.5"/><line x1="200" y1="0" x2="200" y2="400" stroke="%23ffffff" stroke-opacity="0.2" stroke-width="0.5"/><line x1="250" y1="0" x2="250" y2="400" stroke="%23ffffff" stroke-opacity="0.2" stroke-width="0.5"/><line x1="300" y1="0" x2="300" y2="400" stroke="%23ffffff" stroke-opacity="0.2" stroke-width="0.5"/><line x1="350" y1="0" x2="350" y2="400" stroke="%23ffffff" stroke-opacity="0.2" stroke-width="0.5"/><line x1="400" y1="0" x2="400" y2="400" stroke="%23ffffff" stroke-opacity="0.2" stroke-width="0.5"/><line x1="0" y1="0" x2="400" y2="0" stroke="%23ffffff" stroke-opacity="0.2" stroke-width="0.5"/><line x1="0" y1="50" x2="400" y2="50" stroke="%23ffffff" stroke-opacity="0.2" stroke-width="0.5"/><line x1="0" y1="100" x2="400" y2="100" stroke="%23ffffff" stroke-opacity="0.2" stroke-width="0.5"/><line x1="0" y1="150" x2="400" y2="150" stroke="%23ffffff" stroke-opacity="0.2" stroke-width="0.5"/><line x1="0" y1="200" x2="400" y2="200" stroke="%23ffffff" stroke-opacity="0.2" stroke-width="0.5"/><line x1="0" y1="250" x2="400" y2="250" stroke="%23ffffff" stroke-opacity="0.2" stroke-width="0.5"/><line x1="0" y1="300" x2="400" y2="300" stroke="%23ffffff" stroke-opacity="0.2" stroke-width="0.5"/><line x1="0" y1="350" x2="400" y2="350" stroke="%23ffffff" stroke-opacity="0.2" stroke-width="0.5"/><line x1="0" y1="400" x2="400" y2="400" stroke="%23ffffff" stroke-opacity="0.2" stroke-width="0.5"/></g><g opacity="0.2"><circle cx="100" cy="120" r="3" fill="%23ffffff"/><circle cx="250" cy="180" r="2" fill="%23ffffff"/><circle cx="320" cy="280" r="2.5" fill="%23ffffff"/><circle cx="80" cy="300" r="2" fill="%23ffffff"/><circle cx="300" cy="100" r="2" fill="%23ffffff"/></g><g opacity="0.15"><path d="M200 150L200.5 155.5L206 156L200.5 156.5L200 162L199.5 156.5L194 156L199.5 155.5L200 150Z" fill="%23ffffff"/><path d="M150 250L150.4 254.4L154.8 254.8L150.4 255.2L150 259.6L149.6 255.2L145.2 254.8L149.6 254.4L150 250Z" fill="%23ffffff"/><path d="M280 220L280.4 224.4L284.8 224.8L280.4 225.2L280 229.6L279.6 225.2L275.2 224.8L279.6 224.4L280 220Z" fill="%23ffffff"/></g></svg>'),
        radial-gradient(ellipse at top right, rgba(255, 255, 255, 0.15) 0%, transparent 65%),
        radial-gradient(ellipse at bottom left, rgba(255, 255, 255, 0.1) 0%, transparent 65%),
        radial-gradient(ellipse at center, rgba(0, 74, 173, 0.2) 0%, transparent 75%),
        linear-gradient(135deg, #131a21 0%, #151920 25%, #1a1f2e 50%, #1e2435 75%, #222930 100%);
    padding: 3rem;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    opacity: 0;
    animation: fadeInPanel 0.6s ease-out 0.2s forwards;
}

@media (min-width: 1024px) {
    .branded-panel {
        display: flex;
    }
}

@keyframes fadeInPanel {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.panel-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    animation: fadeInPattern 1s ease-out 0.4s forwards;
}

@keyframes fadeInPattern {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.1;
    }
}

.pattern-circle {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.pattern-circle-1 {
    top: 5rem;
    right: 5rem;
    width: 16rem;
    height: 16rem;
}

.pattern-circle-2 {
    bottom: 10rem;
    left: 2.5rem;
    width: 10rem;
    height: 10rem;
}

.pattern-circle-3 {
    top: 50%;
    right: 33%;
    width: 20rem;
    height: 20rem;
}

.panel-content {
    position: relative;
    z-index: 10;
}

.panel-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: slideInUp 0.6s ease-out 0.5s forwards;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.panel-title span {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    max-width: 28rem;
    opacity: 0;
    animation: slideInUp 0.6s ease-out 0.7s forwards;
    line-height: 1.6;
}

.panel-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.9s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    opacity: 0;
    transform: translateY(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
}

.feature-item:nth-child(1) {
    animation: fadeInUpItem 0.5s ease-out 1.1s forwards;
}

.feature-item:nth-child(2) {
    animation: fadeInUpItem 0.5s ease-out 1.2s forwards;
}

.feature-item:nth-child(3) {
    animation: fadeInUpItem 0.5s ease-out 1.3s forwards;
}

.feature-item:nth-child(4) {
    animation: fadeInUpItem 0.5s ease-out 1.4s forwards;
}

@keyframes fadeInUpItem {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
}

.feature-text {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}

.panel-testimonial {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 1.25rem;
    opacity: 0;
    animation: slideInUp 0.6s ease-out 1.5s forwards;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    margin-bottom: 0.875rem;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 1.6s forwards;
    font-size: 0.9375rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 1.7s forwards;
}

.testimonial-avatar {
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.testimonial-info {
    flex: 1;
    min-width: 0;
}

.testimonial-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8125rem;
    margin-bottom: 0.125rem;
    line-height: 1.3;
}

.testimonial-role {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.6875rem;
    line-height: 1.3;
    font-weight: 400;
}

/* Testimonial Slider */
.testimonial-slider {
    position: relative;
    min-height: 140px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(0);
    transition: opacity 0.5s ease;
    pointer-events: none;
    visibility: hidden;
}

.testimonial-slide.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    z-index: 1;
}

.testimonial-slide .testimonial-text {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.testimonial-slide .testimonial-author {
    margin-top: 0;
}

.testimonial-slide.sliding-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial-slide.sliding-in {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.panel-decorative {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
}

.decorative-1 {
    top: 25%;
    right: 3rem;
    width: 6rem;
    height: 6rem;
    animation: float 6s ease-in-out infinite;
}

.decorative-2 {
    bottom: 33%;
    left: 2rem;
    width: 4rem;
    height: 4rem;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Hide scrollbar but keep functionality */
.form-content-wrapper {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.form-content-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.branded-panel {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.branded-panel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Responsive */
@media (max-width: 1024px) {
    .form-header {
        padding: 1rem 1.5rem;
    }

    .form-content-wrapper {
        padding: 1rem;
    }
}
