/* Modern Auth Design - Light Theme */
.b2b-modern-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.b2b-auth-split-container {
    display: flex;
    justify-content: center;
    max-width: 700px;
    width: 100%;
    min-height: 600px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Combined Container - Side by Side Forms */
.b2b-auth-combined-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1400px;
    width: 100%;
    min-height: 600px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    gap: 0;
}

/* Login Side (Left) - Teal Brand Side */
.b2b-login-side {
    background: linear-gradient(135deg, #50d4c4 0%, #3fb8a8 100%);
    position: relative;
    overflow: hidden;
}

.b2b-login-side::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Register Side (Right) - White Background */
.b2b-register-side {
    background: white;
}

/* Left Side - Brand */
.b2b-auth-brand-side {
    background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 50%, #319795 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.b2b-auth-brand-side::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 0, 0, 0.05) 0%, transparent 50%);
}

.b2b-brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.b2b-brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.b2b-logo-hexagon {
    width: 200px;
    height: 200px;
    background: #2c3e50;
    clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 3px solid rgba(79, 209, 197, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.b2b-logo-text-company {
    font-size: 13px;
    font-weight: 500;
    color: #4fd1c5;
    letter-spacing: 3px;
}

.b2b-logo-text-main {
    font-size: 42px;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    line-height: 1;
}

.b2b-logo-text-name {
    font-size: 14px;
    font-weight: 400;
    color: #4fd1c5;
    letter-spacing: 4px;
}

/* Form Side */
.b2b-auth-form-side {
    padding: 60px 50px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.b2b-auth-form-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.b2b-auth-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.b2b-auth-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #50d4c4;
    margin: 0 0 15px 0;
    letter-spacing: 0.5px;
}

.b2b-welcome-title {
    font-size: 48px !important;
    font-weight: 700 !important;
    color: white !important;
    margin: 0 0 25px 0 !important;
    letter-spacing: 1px !important;
}

.b2b-login-side .b2b-auth-header h2 {
    color: white;
}

.b2b-auth-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    letter-spacing: 0.3px;
    font-weight: 400;
    line-height: 1.6;
}

.b2b-login-side .b2b-auth-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
}

/* Auth Action (Welcome Side Button) */
.b2b-auth-action {
    margin-top: 40px;
    text-align: center;
}

.b2b-outline-btn {
    display: inline-block;
    padding: 14px 50px;
    background: transparent;
    border: 2px solid white;
    border-radius: 30px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.b2b-outline-btn:hover {
    background: white;
    color: #50d4c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Social Login Icons */
.b2b-social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.b2b-social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.b2b-social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

/* Modern Form Fields */
.b2b-modern-form {
    width: 100%;
}

.b2b-modern-field {
    margin-bottom: 20px;
}

.b2b-modern-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.b2b-login-side .b2b-modern-field label {
    color: rgba(255, 255, 255, 0.9);
}

.b2b-modern-field input[type="text"],
.b2b-modern-field input[type="email"],
.b2b-modern-field input[type="password"],
.b2b-modern-field select {
    width: 100%;
    padding: 14px 16px 14px 45px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #334155;
    font-size: 15px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.b2b-login-side .b2b-modern-field input {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #334155;
}

.b2b-modern-field input[type="text"]::placeholder,
.b2b-modern-field input[type="email"]::placeholder,
.b2b-modern-field input[type="password"]::placeholder {
    color: #94a3b8;
}

.b2b-login-side .b2b-modern-field input::placeholder {
    color: #94a3b8;
}

.b2b-modern-field input:focus,
.b2b-modern-field select:focus {
    outline: none;
    border-color: #50d4c4;
    background: white;
    box-shadow: 0 0 0 3px rgba(80, 212, 196, 0.1);
}

.b2b-modern-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.b2b-modern-field select option {
    background: white;
    color: #334155;
}

/* Checkbox */
.b2b-modern-checkbox {
    margin: 25px 0;
}

.b2b-modern-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.b2b-login-side .b2b-modern-checkbox label {
    color: rgba(255, 255, 255, 0.9);
}

.b2b-modern-checkbox input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #50d4c4;
}

.b2b-modern-checkbox span {
    flex: 1;
}

/* Submit Button */
.b2b-modern-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #50d4c4 0%, #3fb8a8 100%);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(80, 212, 196, 0.3);
    text-transform: uppercase;
}

.b2b-modern-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 212, 196, 0.4);
    background: linear-gradient(135deg, #3fb8a8 0%, #2da090 100%);
}

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

.b2b-login-side .b2b-modern-submit-btn {
    background: white;
    color: #50d4c4;
    border: 2px solid white;
}

.b2b-login-side .b2b-modern-submit-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #3fb8a8;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Footer Links */
.b2b-modern-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
    color: #64748b;
}

.b2b-login-side .b2b-modern-footer {
    color: rgba(255, 255, 255, 0.9);
}

.b2b-modern-footer a {
    color: #50d4c4;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.b2b-modern-footer a:hover {
    color: #3fb8a8;
}

.b2b-login-side .b2b-modern-footer a {
    color: white;
    text-decoration: underline;
}

.b2b-login-side .b2b-modern-footer a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.b2b-modern-link {
    color: #50d4c4;
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    margin-top: 10px;
}

.b2b-modern-link:hover {
    color: #3fb8a8;
}

/* Error Messages */
.b2b-modern-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
}

.b2b-registration-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #059669;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Role-specific fields - Initially hidden */
.b2b-role-fields {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.b2b-role-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.b2b-role-section.active {
    display: block;
}

.b2b-role-section h4 {
    color: #50d4c4;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 25px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #50d4c4;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.b2b-role-section .b2b-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.b2b-role-section .b2b-form-row.full-width {
    grid-template-columns: 1fr;
}

.b2b-role-section .b2b-form-group {
    margin-bottom: 0;
}

.b2b-role-section .b2b-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.b2b-role-section input[type="text"],
.b2b-role-section input[type="number"],
.b2b-role-section select {
    width: 100%;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #334155;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.b2b-role-section input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.b2b-role-section input:focus,
.b2b-role-section select:focus {
    outline: none;
    border-color: #50d4c4;
    background: white;
    box-shadow: 0 0 0 3px rgba(80, 212, 196, 0.1);
}

.b2b-role-section textarea {
    width: 100%;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #334155;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.b2b-role-section textarea::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.b2b-role-section textarea:focus {
    outline: none;
    border-color: #50d4c4;
    background: white;
    box-shadow: 0 0 0 3px rgba(80, 212, 196, 0.1);
}

.b2b-role-section select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.b2b-role-section select option {
    background: white;
    color: #334155;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .b2b-auth-combined-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .b2b-login-side {
        border-right: none;
        border-bottom: 2px solid #4fd1c5;
    }
}

@media (max-width: 768px) {
    .b2b-auth-split-container,
    .b2b-auth-combined-container {
        max-width: 100%;
    }
    
    .b2b-auth-form-side {
        padding: 40px 30px;
    }
    
    .b2b-auth-header h2 {
        font-size: 28px;
    }
    
    .b2b-role-section .b2b-form-row {
        grid-template-columns: 1fr;
    }
}

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