* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Login Container */
.login-container {
    display: flex;
    min-height: 100vh;
}

/* Hero Section - Left Panel */
.hero-section {
    flex: 1;
    position: relative;
    background-image: url('../images/index_image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 60px;
    min-height: 100vh;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 560px;
}

.hero-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.feature-text h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.testimonial {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 18px;
}

.testimonial-text {
    font-size: 14px;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.author-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.author-title {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* Form Section - Right Panel */
.form-section {
    flex: 1;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    max-width: 600px;
}

.form-wrapper {
    width: 99%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    margin-bottom: 20px;
}

.logo svg {
    color: white;
}

.form-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.form-header p {
    font-size: 14px;
    color: #6b7280;
}

/* Form Styles */
.form-group {
    /* margin-bottom: 10px; */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 13px 14px 13px 44px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
    background: #f9fafb;
    color: #1a1a1a;
    font-family: inherit;
}

input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="text"]::placeholder {
    color: #9ca3af;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-wrapper {
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 48px !important;
    flex: 1;
    min-width: 0;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.toggle-password:hover {
    color: #1a1a1a;
}

.toggle-password:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.toggle-password svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toggle-password .eye-off-icon {
    display: none;
}

.toggle-password.active .eye-icon {
    display: none;
}

.toggle-password.active .eye-off-icon {
    display: block;
}

.error-message {
    display: block;
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
    min-height: 18px;
}

.input-wrapper.error input {
    border-color: #dc2626;
    background-color: #fee2e2;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: white;
}

.checkbox-label:hover .checkbox-custom {
    border-color: #667eea;
}

.checkbox-label input:checked + .checkbox-custom {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.checkbox-text {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

.forgot-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.forgot-link:hover {
    color: #5568d3;
}

.submit-btn {
    position: relative;
    width: 100%;
    padding: 13px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    overflow: hidden;
    margin-bottom: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.submit-btn .btn-loader {
    display: none;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #9ca3af;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.divider span {
    padding: 0 16px;
    font-weight: 400;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.social-btn {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.social-btn:active {
    transform: scale(0.98);
}

.social-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.footer-text {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
}

.create-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.create-link:hover {
    color: #5568d3;
}

.trust-text {
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.payment-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.payment-icon {
    width: 40px;
    height: 26px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    background: white;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section {
        padding: 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .hero-section {
        min-height: 40vh;
        padding: 40px 24px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .features {
        display: none;
    }
    
    .form-section {
        padding: 32px 24px;
    }
    
    .form-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 30vh;
        padding: 32px 20px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .testimonial {
        padding: 20px;
    }
    
    .form-section {
        padding: 24px 20px;
    }
    
    .form-header h1 {
        font-size: 24px;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
