/* Auth V4 - Split Dark/Light Design (Payoneer Style) */

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

.auth-v4-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 40px;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(26, 26, 46, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(22, 33, 62, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(15, 15, 35, 0.4) 0%, transparent 70%),
        linear-gradient(135deg, #2d3a5a 0%, #1a1a2e 25%, #16213e 50%, #0f0f23 75%, #0a0a15 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-v4-container {
    display: flex;
    height: 85vh;
    max-height: 700px;
    width: 100%;
    max-width: 1200px;
    border-radius: 32px;
    overflow: visible;
    position: relative;
}

/* Left Dark Panel */
.auth-v4-left-panel {
    flex: 1;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
    max-width: 50%;
    border-radius: 32px;
    z-index: 1;
}

.auth-v4-left-panel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.auth-v4-left-tagline {
    position: absolute;
    top: 40px;
    left: 60px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
}

.auth-v4-left-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 500px;
}

.auth-v4-left-title {
    font-size: 56px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 40px;
}

.auth-v4-left-image {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.auth-v4-left-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Right Form Panel */
.auth-v4-right-panel {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    max-width: 50%;
    border-radius: 32px;
    z-index: 2;
    margin-left: -40px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-v4-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 60px;
}

.auth-v4-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-v4-logo img {
    height: 40px;
    width: auto;
}

.auth-v4-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}

.auth-v4-header-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.auth-v4-header-link:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.auth-v4-header-link i {
    font-size: 16px;
}

/* Form Section */
.auth-v4-form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 60px;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.auth-v4-form-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 40px;
}

.auth-v4-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-v4-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-v4-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.auth-v4-input-wrapper {
    position: relative;
}

.auth-v4-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #ffffff;
    color: #1a1a2e;
    transition: all 0.2s ease;
}

.auth-v4-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.auth-v4-input::placeholder {
    color: #9ca3af;
}

.auth-v4-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.auth-v4-password-toggle:hover {
    color: #6b7280;
}

.auth-v4-forgot-link {
    text-align: left;
    margin-top: -8px;
}

.auth-v4-forgot-link a {
    font-size: 14px;
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-v4-forgot-link a:hover {
    color: #e55a2b;
    text-decoration: underline;
}

.auth-v4-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(90deg, #ff6b35 0%, #ff8a5c 50%, #ff6b8a 100%);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.auth-v4-btn:hover {
    background: linear-gradient(90deg, #e55a2b 0%, #ff7a4c 50%, #ff5a7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

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

.auth-v4-btn i {
    font-size: 18px;
    color: #ffffff;
}

/* Remember Me */
.auth-v4-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
}

.auth-v4-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ff6b35;
    cursor: pointer;
}

/* Signup Link */
.auth-v4-signup-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #6b7280;
}

.auth-v4-signup-link a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.auth-v4-signup-link a:hover {
    text-decoration: underline;
}

/* Footer */
.auth-v4-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 60px;
    border-top: 1px solid #f3f4f6;
    font-size: 13px;
    color: #9ca3af;
}

.auth-v4-footer-links {
    display: flex;
    gap: 24px;
}

.auth-v4-footer-links a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-v4-footer-links a:hover {
    color: #1a1a2e;
}

/* Register Form Specific */
.auth-v4-form-section-wide {
    max-width: 600px;
}

.auth-v4-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 16px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.auth-v4-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-v4-select {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #ffffff;
    color: #1a1a2e;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
}

.auth-v4-select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.auth-v4-invalid-feedback {
    display: none;
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

.auth-v4-input.is-invalid {
    border-color: #ef4444;
}

.auth-v4-input.is-valid {
    border-color: #22c55e;
}

.required {
    color: #ef4444;
}

/* Signup Page Specific - Full height right panel */
.user_signup .auth-v4-container {
    height: auto;
    max-height: none;
    align-items: center;
    max-width: 1400px;
}

.user_signup .auth-v4-left-panel {
    height: auto;
    min-height: 500px;
    align-self: stretch;
    max-width: 40%;
    flex: 0 0 40%;
}

.user_signup .auth-v4-right-panel {
    height: auto;
    min-height: auto;
    margin-top: 0;
    margin-bottom: 0;
    overflow: visible;
    align-self: stretch;
    max-width: 60%;
    flex: 0 0 60%;
}

.user_signup .auth-v4-right-panel-scrollable {
    overflow: visible;
}

.user_signup .auth-v4-header {
    padding: 16px 30px;
}

.user_signup .auth-v4-form-section {
    flex: 1;
    padding: 16px 30px;
}

.user_signup .auth-v4-form-title {
    font-size: 24px;
    margin-bottom: 16px;
}

.user_signup .auth-v4-section-title {
    margin-top: 12px;
    margin-bottom: 8px;
    font-size: 11px;
}

.user_signup .auth-v4-form-group {
    margin-bottom: 0;
}

.user_signup .auth-v4-form-group label {
    font-size: 12px;
    margin-bottom: 4px;
}

.user_signup .auth-v4-input,
.user_signup .auth-v4-select {
    padding: 10px 14px;
    font-size: 13px;
}

.user_signup .auth-v4-btn {
    padding: 12px 20px;
    margin-top: 16px;
    font-size: 14px;
}

.user_signup .auth-v4-signup-link {
    margin-top: 12px;
    font-size: 13px;
}

.user_signup .auth-v4-footer {
    padding: 12px 30px;
    font-size: 12px;
}

/* 3 columns form row for signup */
.user_signup .auth-v4-form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .auth-v4-left-panel {
        padding: 40px;
    }
    
    .auth-v4-left-title {
        font-size: 44px;
    }
    
    .auth-v4-left-tagline {
        left: 40px;
    }
}

@media (max-width: 992px) {
    .auth-v4-body {
        padding: 20px;
    }
    
    .auth-v4-container {
        flex-direction: column;
        min-height: calc(100vh - 40px);
        border-radius: 24px;
    }
    
    .auth-v4-left-panel {
        max-width: 100%;
        min-height: 300px;
        padding: 40px;
        border-radius: 24px 24px 0 0;
    }
    
    .auth-v4-left-title {
        font-size: 36px;
        text-align: center;
    }
    
    .auth-v4-left-tagline {
        position: relative;
        top: auto;
        left: auto;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .auth-v4-left-content {
        text-align: center;
    }
    
    .auth-v4-left-image {
        display: none;
    }
    
    .auth-v4-right-panel {
        max-width: 100%;
        border-radius: 0 0 24px 24px;
        margin-left: 0;
        margin-top: -20px;
    }
    
    .auth-v4-header {
        padding: 20px 30px;
    }
    
    .auth-v4-form-section {
        padding: 30px;
    }
    
    .auth-v4-footer {
        padding: 20px 30px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .auth-v4-form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-v4-form-title {
        font-size: 26px;
    }
    
    .auth-v4-left-title {
        font-size: 28px;
    }
}
